开发者

[__NSArrayM synchronize]: unrecognized selector exception

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜