Web サービスに同期できるデータがある場合、iPhone アプリの最初のビューが読み込まれるとすぐにポップアップする UIActionSheet があります。問題は、UIActionSheet のポップアップが高すぎることです。タブ バーのちょうど半分がアクション シートの下に露出しています。これがスタイリングによって引き起こされていることに気づいていませんか?これを防ぐための説明/解決策を誰かが提供できますか?!
提案をお寄せいただきありがとうございます。私のコードは以下のとおりです...
- (void)viewDidLoad {
//...preset a few values here, unrelated to the view...
//...
// Add an actionsheet to prompt for a DB sync
if ([myDatabase isSyncPossible] == true) {
UIActionSheet *actionsheet = [[UIActionSheet alloc]
initWithTitle: @"You have information that hasn't been uploaded, would you like to sync now?"
delegate: self
cancelButtonTitle: @"No thanks, maybe later"
destructiveButtonTitle: @"Yes, upload now"
otherButtonTitles: nil];
actionsheet.tag = 2;
[actionsheet showInView:self.view];
[actionsheet release];
}
}