Hi, I am using the following code to create Custom VolumeSlider. Is there anything wrong with this implementation.
Instruments identifies the memory leak "resizableImageWithCapInsets" call. MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:self. volumeSliderView.bounds]; [volumeView setMaximumVolumeSliderImage:[[UIImage imageNamed: @"SliderMaximum"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 10)] forState:UIControlStateNormal]; [volumeView setMinimumVolumeSliderImage:[[UIImage imageNamed: @"SliderMinimum"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 0)] forState:UIControlStateNormal]; [volumeView setRouteButtonImage:[UIImage imageNamed:@"Airplay"] forState :UIControlStateNormal]; [volumeView setVolumeThumbImage:[UIImage imageNamed:@"VolumeThumb"] forState:UIControlStateNormal]; [self.volumeSliderView addSubview:volumeView]; volumeView = nil; Any help is highly appreciated. Thank you Sasikumar JP _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com