0

今日、プロジェクトに UIActionSheet を 1 つ追加したところ、非常に奇妙な表示になりました。

ここに画像の説明を入力

ご覧のとおり、アクション シートにはテキストのみが表示され、ボタンは表示されず、背景は完全に黒です。アプリに UIActionSheet のデフォルト スタイルを設定したいだけです。

私はストーリーボードを使用しています。アクション シートを表示するコードは次のとおりです。

UIActionSheet *_actionSheet = [[[UIActionSheet alloc] initWithTitle:LocStr(@"Cell_TellFriend_Key") delegate:self cancelButtonTitle:LocStr(@"Cancel_Key") destructiveButtonTitle:nil otherButtonTitles:LocStr(@"EmailShare_Key"),LocStr(@"FacebookShare_Key"),LocStr(@"TwitterShare_Key"),nil] autorelease];

_actionSheet.actionSheetStyle = UIActionSheetStyleDefault;

AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
[_actionSheet showFromTabBar:appDelegate.tabbarCtrl.tabBar];

私は何を間違っていますか?どうすればこれを修正できますか?

4

1 に答える 1