steps to add tabbarcontroller to AppDelegate using Interface Builder in XCode 4.2 Empty Application template

前端 未结 3 1070
感情败类
感情败类 2021-02-06 14:10

while I\'m stuck at this question I cannot find the right steps to add a UITabBarController to the AppDelegate (not programatically) but by using interface builder for the \"Emp

3条回答
  •  自闭症患者
    2021-02-06 14:54

    I don't understand what is the need to add a UITabBarController through the main window. With Xcode 4.2, Apple has made some changes in the default templates. It does not provide a MainWindow.xib in the Empty Application. That is why, if you open up the AppDelegate.h, you will see:

    @property (strong, nonatomic) UIWindow *window;
    

    It does not have an IBOutlet for the window as we used to see in previous Xcode versions. What you want to achieve is a UITabBarController with Core Data support. You could add the tabBarController programatically, and still add CoreData support.

提交回复
热议问题