我有一个包含滚动视图的视图(objViewComments),它工作正常。但现在我已经使用下面的代码在 UIActionsheet 中添加了这个视图:
myActionSheet = [[UIActionSheet alloc] initWithTitle:@"n \n \n \n \n \n \n \n" delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil];
myActionSheet.actionSheetStyle = UIActionSheetStyleBlackTranslucent;
objViewComments.view.frame = CGRectMake(0, 0, 320, 480);
objViewComments.myTempActionSheet = myActionSheet;
//myActionSheet.frame = CGRectMake(0, 0, 320, 480);
[myActionSheet showInView:self.navigationController.view];
[myActionSheet addSubview:objViewComments.view];
[myActionSheet release]
但是现在滚动视图不起作用。并抛出错误:
[UIImageView scrollViewDidScroll:]: unrecognized selector sent to instance 0x18f480'
谢谢