开发者

iPhone APP delegate alloc warning

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜