我有一个奇怪的问题。当我在模拟器上运行我的应用程序时,一切正常,但在设备上,一些代码无论如何都没有反应。我有一个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