在 iPad 上创建标签栏应用程序
我开发了一个基于Tab bar & 的iPhone应用程序。导航栏和我已经成功做到了。
现在我想在 Ipad 上创建具有一些细微不同要求的相同应用程序 我用于 iphone 的相同设计结构在 Ipad 上不起作用的问题是,这就是我正在做的事情:
- ViewController (login)
- ViewController (List of devices)
问题
- ViewController (have tab bar view controller)
现在这是ViewController 没有调用的 在 iPhone 中成功完成的第一个选项卡基于 iPhone 选项卡栏的应用程序和 iPad 之间有什么不同吗?
[在我的TabViewController中]
IBOutlet UITabBarController *TabNavigator;
通过xib文件连接 在我的 viewDidLoad 处理程序中我使用:
self.view = self.TabNavigator.view;
I have developed an iPhone application based on Tab bar & Navigation bar and i have done that successfully.
now i want to create the same application with some minor different requirement on the Ipad the problem that the same Design structure i used for the iphone is not working on Ipad here is what i am doing:
- ViewController (login)
- ViewController (List of devices)
now here is the problem
- ViewController (have tab bar view controller)
the ViewController is not calling the first tab which was successfully done in the iphone is there different between iphone tab bar based application and ipad?
[In my TabViewController]
IBOutlet UITabBarController *TabNavigator;
connected through the xib file
in my viewDidLoad handler i use:
self.view = self.TabNavigator.view;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案,就我个人而言,我不知道逻辑,但在 iPhone 中很奇怪,我曾经从应用程序委托中执行以下操作来调用选项卡栏控制器:
当我删除 iPad 上的释放线时,一切正常。
I have found the solution, Personally i don't know the logic but it's strange in the iphone I used to do the following from the Application Delegate to call the tab bar controller:
When I removed the release line on the iPad everything worked fine.