UIactionsheet 中的 UIScrollview 不起作用
我有一个包含滚动视图的视图(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据错误,您的滚动视图委托可能连接错误。
Based on the error, it is likely that your scrollview delegate is wrongly wired up.