Re: Memory Leak on UIImage resizableImageWithCapInsets

2014-01-03 Thread Sasikumar JP
Hi, Thank you for the reference. I want to try with replacing [UIImage imageNamed:] method with [UIImage imageWithContentsOfFile:] to check for memory leak. As my Images are stored in Image asset(Images.xcassets). I dont know how to read the image from image asset. [[NSBundle mainBundle] path

Re: Memory Leak on UIImage resizableImageWithCapInsets

2014-01-02 Thread Appa Rao Mulpuri
will helps you probably ‹ http://stackoverflow.com/questions/14264598/instrument-and-leaks Regards, Apparao Mulpuri On 1/3/14 10:41 AM, "Sasikumar JP" wrote: >Apprao, > I forgot to mention that this code uses ARC. so release not required. > >Thank you >Sasikumar JP > >Sent from my iPhone >

Re: Memory Leak on UIImage resizableImageWithCapInsets

2014-01-02 Thread Sasikumar JP
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 > wrote: > > Add [volumeView release] before making it to nil. > > > Regards, > > Apparao Mulpuri > Senior Systems Ana

Re: Memory Leak on UIImage resizableImageWithCapInsets

2014-01-02 Thread Appa Rao Mulpuri
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, "Sasik

Memory Leak on UIImage resizableImageWithCapInsets

2014-01-02 Thread Sasikumar JP
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];