开发者

UIScrollview in UIactionsheet is not working

开发者 https://www.devze.com 2023-03-05 03:16 出处:网络
I have a view (objViewComments) that contains scrollview and its working fine. but now i have added this view in UIActionsheet using below code :

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

精彩评论

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