ABPersonPickerNavigationController 和 UITabbarController
假设 UITabbarcontroller
的第三个选项卡,我们如何使用 ABPersonPickerNavigationController
。
实际上,我在此控制器中显示所有地址簿联系人...所以我使用 ABPersonPickerNavigationController
目前我正在使用此代码,但是当我们单击 UITabbarcontroller
的第三个选项卡时...控制器将出现,但我们看不到 UITabbar..
这是我的代码..
-(void)viewWillAppear:(BOOL)animated
{
// creating the picker
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
// place the delegate of the picker to the controll
picker.peoplePickerDelegate = self;
// showing the picker
[self presentModalViewController:picker animated:NO];
// releasing
[picker release];
}
那么我该怎么做才能使 ABPersonPickerNavigationController
和 UITabbarcontroller
都可以见过...
请帮我解决这个问题..
提前致谢...
How can we use use ABPersonPickerNavigationController
on suppose the third tab of the UITabbarcontroller
.
Actually I am showing all Address book contacts in this controller...so I use ABPersonPickerNavigationController
Currently I am using this code but when we click on third tab of UITabbarcontroller
.. this controller will present and we can not see that UITabbar..
Here is my code..
-(void)viewWillAppear:(BOOL)animated
{
// creating the picker
ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
// place the delegate of the picker to the controll
picker.peoplePickerDelegate = self;
// showing the picker
[self presentModalViewController:picker animated:NO];
// releasing
[picker release];
}
So what can I do so that both the ABPersonPickerNavigationController
and UITabbarcontroller
can be seen...
Please help me to solve this problem..
Thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
而不是
尝试这个
检查您的控制器结构。需要 UINavigationController。
但我建议使用 AddressBook Framework 而不是 AddressBookUI 制作自定义人员选择器控制器。
如果不进行定制,您只能更改几个因素。
Instead of
Try this
Check your Controller Structure. UINavigationController is needed.
But I recommend make custom people picker controller using AddressBook Framework not AddressBookUI.
Without customizing, you can change only a few factor.
尝试在应用程序委托中添加一些类似这样的代码:
将 viewFor1stTab、viewForSecondTab 替换为您想要这些选项卡的视图。
请阅读文档,这可能是UITabBarController最基本的功能。
Try adding some code like this in the app delegate:
replace viewFor1stTab, viewForSecondTab with the views you want for those tabs.
Please read the documentation, this is probably the most basic function of UITabBarController.