开发者

Use a people picker inside a tab bar

I am currently using the people picker in IOS to show the list of contacts and let the user select the contact they want to use within my app.

Currently it is presented Modally, as in it pops up and covers my en开发者_StackOverflow社区tire app.

My app has a Tab bar at the bottom and a navigation bar at the top, I was wondering is it possible to display the people picker in the view between the tab bar and the navigation bar?

Or will the people picker always cover the entire app?

EDIT:

When I try to push it using a navigation controller like this:

[self.navigationController pushViewController:picker animated:NO];

I get the following error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing a navigation controller is not supported'


If you don't display it modal, but push it in an navigation controller then it should not hide your tabbar.

I'm assuming that you have a navigation controller setup in the tab you want to display you contacts view in.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜