0

我正在尝试设计一个 iOS 应用程序,并且想知道如何为我的应用程序创建一个新的选项卡/视图?

或者,如果这样做更简单,我有一个带有选项卡的视图控制器,我怎么能将它连接到我的主视图控制器?

4

1 回答 1

0

Or, if this is simpler to do, I have a view controller with a tab on it, how could I connect it to my main view controller?

If you are in Storyboard, hold down the control key and drag with the mouse from the UITabBarController (the one without a view on it, just kinda a transparent grey background) to the UIViewController (has a solid white background color by default) you want to hook up. Release the mouse click, and choose "view controllers" (under "Relationship Segue"). That will automatically add the tab bar to your new UIViewController and add a new icon in your UITabBarController.

于 2012-11-15T21:20:45.577 回答