在项目中实现UItabbarController + UInavigationBar [英] Implement UItabbarController + UInavigationBar in project

查看:49
本文介绍了在项目中实现UItabbarController + UInavigationBar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有基于导航控制器的项目.在我的项目中,我有启动画面和我隐藏了导航控制器的登录屏幕.

I have navigation controller based project. In my project I have Splash Screen & Login Screen where i have hidden the navigation controller.

现在我必须在应用程序中实现TabbarController,并且需要在登录页面后显示屏幕.

Now i have to implement TabbarController in the application and It need to be shown the screen after Login Page.

我想在AppDelegate中添加它.但是我的问题是我已经将Window的rootviewcontroller设置为导航控制器.

I want to add it in AppDelegate.But my problem is that I have set rootviewcontroller of Window as navigation controller.

现在我也想在Appdelegate类中使用Tabbar控制器.

And Now i want to use Tabbar controller also into the Appdelegate class.

我发现有困难.

任何帮助将不胜感激.

推荐答案

也许您的应用程序中确实需要这种导航,对我来说,这听起来有点不必要的解决方法,而且违反了准则.尝试看看Apple的(组合的View Controller接口"),也许您会找到解决问题的更优雅的解决方案.

Maybe you really need that kind of navigation in your application, to me it sounds a bit of a unnecessary workaround and against guidelines. Try having a look at Apple's ("View Controller Programming Guide > Combined View Controller Interfaces") and maybe you'll find a more elegant solution to your problem.

这篇关于在项目中实现UItabbarController + UInavigationBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆