変更前
UIActionSheet *actionSheet = [[[UIActionSheet alloc]
initWithTitle: @"どちらで開きますか?"
delegate: self
cancelButtonTitle: NSLocalizedString(@"キャンセル", nil)
destructiveButtonTitle: nil
otherButtonTitles:
@"アプリ内で開く",
@"Safariで開く", nil]
autorelease];
[actionSheet showInView: self.view];
変更後
UIActionSheet *actionSheet = [[[UIActionSheet alloc]
initWithTitle: @"どちらで開きますか?"
delegate: self
cancelButtonTitle: NSLocalizedString(@"キャンセル", nil)
destructiveButtonTitle: nil
otherButtonTitles:
@"アプリ内で開く",
@"Safariで開く", nil]
autorelease];
[actionSheet showInView: self.view.window];
[actionSheet showInView: self.view];を
[actionSheet showInView: self.view.window];に変更する。
参考記事:
http://freeek.jp/blog/iphone/139/
タグ:iPhone
【UIActionSheetの最新記事】