开发者

iPhone APP delegate alloc warning

开发者 https://www.devze.com 2023-03-26 07:16 出处:网络
I see this output in allocations tool(one of too many warnings) Can anyone tell me what is going bad here? something with the UIIm开发者_如何学Cage and something very wrong with how I create/use navig

I see this output in allocations tool(one of too many warnings) Can anyone tell me what is going bad here? something with the UIIm开发者_如何学Cage and something very wrong with how I create/use navigation controller

iPhone APP delegate alloc warning

And this is my category for imageview in APP_CATEGORIeS class import

@implementation UIImage(APP)
+(UIImage *) APP_IMAGE_BCKGROUND {
NSString *path = [[NSBundle mainBundle] pathForResource:@"bckPhone" ofType:@"png"];
return [UIImage imageWithContentsOfResolutionIndependentFile:path]; 
}


Looks like you have a UIImage in a past view that wasn't released that's causing dirty leak. Make sure your view transitions are smooth (allocations wise).

On a separate note, if you're setting two different anImageView images and it's retained in another class then Xcode and the compiler might not be catching it and warning you, however that'll do nasty things when the code is executed.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号