我有一個UIActionSheet彈出一旦我的iPhone應用程序中的初始視圖加載,如果有數據可以同步回到Web服務。問題在於UIActionSheet彈出太高 - 標籤欄的一半暴露在操作表下。我不知道這是由造型造成的?任何人都可以提供解釋/解決方案來防止這種情況發生?!UIActionView錯誤地顯示
在此先感謝您的任何建議,我的代碼下面顯示...
- (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];
}
}
感謝您的答覆,並花時間幫助我! 視圖大小確實是錯誤的,不知道爲什麼這在界面中不明顯,但糾正它確實解決了這個問題。非常感謝! – Purpletoucan