开发者

[__NSArrayM synchronize]: unrecognized selector exception

开发者 https://www.devze.com 2023-02-10 11:33 出处:网络
I used some NSMutableArray with UIImageView objects. When I quit the app I get this exception message:

I used some NSMutableArray with UIImageView objects.

When I quit the app I get this exception message:

[__NSArrayM synchronize]: unrecognized selector sent to instance 0x4b3a910

In AppDelagate.m

NSMutableArray * aViewArray;
...
开发者_如何学CcurrentView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:displayImageNamed]];
[aViewArray addObject:currentView];
[currentView release];

In ViewController.m

UIImageView *myImage = [aViewArray objectAtIndex:i];
myImage.xxx = yyy ;


Looking at your comment regarding NSUserDefaults, you should not be releasing both languages and defaults since you don't have ownership (you didn't alloc/init them). Try removing those two calls to release and see if that resolves your issue.

0

精彩评论

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