快要疯了,iPad里面的navigation好怪异[终于解决了,不太会用popover的同学可以参考] 今天折腾了一天,股沟上搜遍了,还是没解决。。。请看图吧 好怪异:title总是偏右,rightBarButtionItem根本没有影。。。有同学遇到过这种情况吗。。。 [谢谢各位的回帖,果然是我不会用popover] 参考了苹果的sample // Create a navigation controller to contain the recent searches controller, and create the popover controller to contain the navigation controller. UINavigationController*navigationController= [[UINavigationControlleralloc] initWithRootViewController:recentSearchesController]; UIPopoverController*popover = [[UIPopoverControlleralloc] initWithContentViewController:navigationController]; 第二行是重点,要把navigationController直接附给popover.我先前是rootviewcontroller附给popover了
快要疯了,iPad里面的navigation好怪异[终于解决了,不太会用popover的同学可以参考]
最新推荐文章于 2021-09-16 16:10:30 发布