0
任何想法爲什麼在UIActionSheet顯示結束時會出現一個額外的/空的按鈕?爲什麼在UIActionSheet顯示結束時會出現額外的按鈕?
另外 - 有沒有辦法將此操作表錨定在屏幕頂部(錨定到它啓動的UIToolBar)?
代碼生成這個:
self.actionButtonActionSheet = [[UIActionSheet alloc] initWithTitle:@"Pick an action"
delegate:self
cancelButtonTitle:@"Dismiss"
destructiveButtonTitle:nil
otherButtonTitles:@"Go to Today", @"Share", @"Journal", @"completedStr", nil];
[self.actionButtonActionSheet showFromToolbar:self.actionBar];
(self.actionBar是頂部的一個)
我曾嘗試採取這一代碼並創建一個示例項目展示這個,但在那個項目中,一切似乎都很好。
想知道我錯過了什麼...
任何幫助/指針將不勝感激。
你嘗試用'yourtabbarcotnro.tabbar.translucent = FALSE顯示;'因爲ios7,在默認情況屬實。 –