开发者

UIScrollview in UIactionsheet is not working

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 destructiveButto开发者_StackOverflownTitle: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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜