我有一個奇怪的問題。當我在模擬器上運行我的應用程序時,一切正常,但在設備上,一些代碼無論如何都沒有反應。我有一個UIActionSheet,在模擬器上看起來不錯,但在設備上它根本不工作。它甚至工作在iPod ..UIAction表不工作在iPad上,但在模擬器工作
這裏是我的代碼顯示動作片:使用該委託動作片
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
if ([actionSheet buttonTitleAtIndex:buttonIndex] == @"A") {....}
if ([actionSheet buttonTitleAtIndex:buttonIndex] == @"B") {....}
}
朋友即時尋找你的幫助
UIActionSheet *DeleteAction = [[UIActionSheet alloc] initWithTitle:@"Select Delete Option" delegate:self cancelButtonTitle:Nil destructiveButtonTitle:nil otherButtonTitles:nil, nil];
[DeleteAction addButtonWithTitle:@"A"];
[DeleteAction addButtonWithTitle:@"B"];
[DeleteAction showInView:self.view];
和IM .. 。 在此先感謝 阿彌陀佛
首先嚐試從iPad上刪除應用程序,然後使用Xcode重新安裝.. –
沒有運氣兄弟.... – Amitabha