你好,我是Xcode和iOS編程的新手。 我在工作表和我的警報中遇到了一些麻煩,必須按兩次才能工作。 它也這樣說: 「呈現由其超級視圖剪輯的動作表」。某些控件可能不會響應觸摸。在iPhone上嘗試 - [UIActionSheet showFromTabBar:]或 - [UIActionSheet showFromToolbar:]而不是 - [UIActionSheet showInView:]。UIAction表單和警報問題
{
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@"¿?" delegate:self cancelButtonTitle:@"No" destructiveButtonTitle:@"Send" otherButtonTitles:nil];
[actionSheet showInView:self.view];
}
任何幫助將不勝感激謝謝!
dobiho,你的方式可能會工作,但你真的應該通過使用'showFromTabBar'來做他們推薦的。看到我的答案。 – mkral 2012-06-18 20:54:18