0

私は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'

ありがとう

4

1 に答える 1

0

エラーに基づいて、scrollviewデリゲートが誤って接続されている可能性があります。

于 2011-05-18T12:23:34.587 に答える