我有一个使用 ABPersonViewController 并允许删除的 iPhone 应用程序。
问题是该应用程序是一个 TabBar 应用程序,当我使用常规删除方法时,我收到此警告:
呈现由其超级视图剪辑的操作表。某些控件可能无法响应触摸。在 iPhone 上尝试 -[UIActionSheet showFromTabBar:] 或 -[UIActionSheet showFromToolbar:] 而不是 -[UIActionSheet showInView:]。
问题是当我尝试按下删除的“取消”时,它不起作用!我希望从 TabBar 中弹出操作表,我该怎么做?
这是代码:
if ([personController respondsToSelector:@selector(setAllowsDeletion:)])
[personController setAllowsDeletion:YES]; //CAN CAUSE THE APPLICATION TO BE DENIED FROM THE APP-STORE