ABPersonViewController删除按钮警告 [英] ABPersonViewController delete button warning
问题描述
我有一个使用ABPersonViewController的iPhone应用程序,并且允许删除.
I have an iPhone application that I use the ABPersonViewController and I allow delete.
问题是该应用程序是TabBar应用程序,当我使用常规的delete方法时,会收到此警告:
The thing is that the application is a TabBar application and when i use the regular delete method I get this warning:
呈现操作表,其工作表视图被其剪辑剪裁了.某些控件可能无法响应触摸.在iPhone上,请尝试-[UIActionSheet showFromTabBar:]或-[UIActionSheet showFromToolbar:]而不是-[UIActionSheet showInView:].
Presenting action sheet clipped by its superview. Some controls might not respond to touches. On iPhone try -[UIActionSheet showFromTabBar:] or -[UIActionSheet showFromToolbar:] instead of -[UIActionSheet showInView:].
问题是,当我尝试按删除的取消"时,它不起作用! 我希望从TabBar弹出操作表,该怎么办?
the problem is that when I try to press on the "Cancel" of the delete, it does not work! I want the action sheet to pop up from the TabBar, How do I do that?
这是代码:
if ([personController respondsToSelector:@selector(setAllowsDeletion:)])
[personController setAllowsDeletion:YES]; //CAN CAUSE THE APPLICATION TO BE DENIED FROM THE APP-STORE
推荐答案
要从标签栏显示操作表,可以在显示它的视图控制器中调用以下内容:[actionSheet showFromTabBar:self.tabBarController.tabBar];
To display an action sheet from a tab bar, you can call the following within the view controller that is presenting it: [actionSheet showFromTabBar:self.tabBarController.tabBar];
此发布.
这篇关于ABPersonViewController删除按钮警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!