UIactionsheet中的UIScrollview不起作用

时间:2011-05-12 08:35:05

标签: iphone uiscrollview uiactionsheet uiscrollviewdelegate

我有一个包含scrollview及其工作正常的视图(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'

由于

1 个答案:

答案 0 :(得分:0)

根据错误,您的scrollview委托可能是错误接线的。