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 protected]> 
> 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 protected]> 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 protected])
>> 
>> 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/apparaom%40ivycomptech.c
>> om
>> 
>> This email sent to [email protected]
> 
> 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 protected])

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 [email protected]

Reply via email to