Re: Memory Leak on UIImage resizableImageWithCapInsets
Re: Memory Leak on UIImage resizableImageWithCapInsets
- Subject: Re: Memory Leak on UIImage resizableImageWithCapInsets
- From: Sasikumar JP <email@hidden>
- Date: Fri, 03 Jan 2014 10:41:38 +0530
Apprao,
I forgot to mention that this code uses ARC. so release not required.
Thank you
Sasikumar JP
Sent from my iPhone
> On Jan 3, 2014, at 10:39 AM, Appa Rao Mulpuri <email@hidden> wrote:
>
> Add [volumeView release] before making it to nil.
>
>
> Regards,
>
> Apparao Mulpuri
> Senior Systems Analyst, Mac Poker
> IVY Comptech Private Limited
> 6th Floor, Block B, Divyasree Omega,
> Kondapur, Hyderabad-500081.
> Mobile + 91 (0) 988 500 4790
> DD + 91 (0) 40 4472 1000 ext: 4391
>
>
>
>> On 1/3/14 10:16 AM, "Sasikumar JP" <email@hidden> wrote:
>>
>> 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:
>> om
>>
>> This email sent to email@hidden
>
> This email and any attachments are confidential, and may be legally privileged and protected by copyright. If you are not the intended recipient dissemination or copying of this email is prohibited. If you have received this in error, please notify the sender by replying by email and then delete the email completely from your system. Any views or opinions are solely those of the sender. This communication is not intended to form a binding contract unless expressly indicated to the contrary and properly authorised. Any actions taken on the basis of this email are at the recipient's own risk.
_______________________________________________
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