[英]Call UISplitViewController from another UIViewController in a UITabBarController app
I'm creating an universal App and have a UITabBarController
for my app's Views. 我正在创建一个通用的应用程序,并为我的应用程序的视图有一个UITabBarController
。 The first tab is a UISplitViewController
created programatically and the others are UIViewControllers
designed in IB. 第一个选项卡是以编程UISplitViewController
创建的UISplitViewController
,其他选项卡是在IB中设计的UIViewControllers
。 How can I call the UISplitViewController
(my first TabBar) and pass a parameter from another TabBar's UIViewController
(for example, by tapping a button)? 如何调用UISplitViewController
(我的第一个TabBar)并从另一个TabBar的UIViewController
传递参数(例如,通过点击按钮)?
你可以试试这个:
[((MyViewControllerType*)[self.tabBarController.viewControllers objectAtIndex:0]) callMyMethodWithObject:object]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.