UIactionsheet 中的 UIScrollview 不起作用

发布于 2024-11-07 05:51:09 字数 839 浏览 2 评论 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'

谢谢

I have a view (objViewComments) that contains scrollview and its working fine. but now i have added this view in UIActionsheet using below code :

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]

But now the scrollview is not working. and throws error :

[UIImageView scrollViewDidScroll:]: unrecognized selector sent to instance 0x18f480'

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枫以 2024-11-14 05:51:09

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

Based on the error, it is likely that your scrollview delegate is wrongly wired up.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文