2011-12-01 18:10:36.932 AVCam[3987:17903] *** -[UIImage _isResizable]: message sent to deallocated instance 0xdf7e360
Current language: auto; currently objective-c
守则
UIImageView * firstView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 240)];
[firstView setContentMode:UIViewContentModeScaleAspectFill];
firstView.image = firstPhoto.photo;
[firstBlock addSubview:firstView];
[firstView release];
有谁知道这意味着什么?可能是什么原因?
谢谢!
答案 0 :(得分:2)
问题应该在这里:
firstView.image = firstPhoto.photo;
什么是firstPhoto
?什么时候发布?我想它会在成为UIImageView
的内容之前被解除分配。