Memory Leak on UIImage resizableImageWithCapInsets
Memory Leak on UIImage resizableImageWithCapInsets
- Subject: Memory Leak on UIImage resizableImageWithCapInsets
- From: Sasikumar JP <email@hidden>
- Date: Fri, 03 Jan 2014 10:16:34 +0530
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 (email@hidden)
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:
This email sent to email@hidden