0
UIActionSheetのボタンを次のコードを使用してビューの変更を実行しようとしています。ビューを表示するUIActionSheetボタン
-(void)displayActionSheet:(id)sender
{
actionSheet = [[UIActionSheet alloc]
initWithTitle:nil
delegate:nil
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"Devanagari", @"English", nil];
actionSheet.actionSheetStyle = UIActionSheetStyleBlackOpaque;
[actionSheet showInView:self.view ];
[actionSheet release];
}
このコードを変更して、Devanagariと英語のボタンをそれぞれ別々のビューにリンクするにはどうすればよいですか?
だけでなく、あまり混乱し、 'actionSheet == actionSheet'はいつもは' true'として評価されます。おそらくパラメータ名を変更するか、 'self-> actionSheet'を使うか、それをプロパティにして' self.actionSheet'を使うべきです – Sulthan