0

我有一个包含滚动视图的视图(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'

谢谢

4

1 回答 1

0

根据该错误,您的滚动视图委托可能连接错误。

于 2011-05-18T12:23:34.587 回答