How to add new xib files

后端 未结 5 1430
别跟我提以往
别跟我提以往 2021-02-02 06:18

I have to develop an app with multiple screens. I have automatically generated xib file, but for my other screen I need another xib file. How do I create another xib file?

5条回答
  •  感动是毒
    2021-02-02 07:02

    In XCode 4:


    To create a standalone user interface (XIB):

    File -> New File -> iOS -> User Interface

    Then choose:

    • Application (includes delegate and window)
    • Window
    • View
    • Empty

    To create a new UIViewController class with a user interface:

    File -> New File -> iOS -> Cocoa Touch -> UIViewController subclass -> Click Next

    Then, name the new view controller class and select "With XIB for user interface."

提交回复
热议问题