Can not create an iPhone xib file with Xcode 6

前端 未结 4 1838
离开以前
离开以前 2020-12-15 05:36

The checkbox to create a .xib file in Xcode 6 seems to be disabled. I can not find any way to enable it again. Does anybody know if this is possible?

4条回答
  •  悲&欢浪女
    2020-12-15 05:56

    I had encountered this problem. Below is fix for this :

    1. Right click on files present in Project Navigator section.
    2. Select New File.

      OR

      Select File from list of tab present in Xcode

      Select New -> File

      OR

      Simply press cmd+N

    3. Choose template for your new file as iOS not OS X, tvOS or watchOS.

    1. Select Cocoa Touch Class and then press Next

    2. Enter Class name and select subclass of it.

    3. Checkmark Also create XIB file.

    4. Select device type and Language and then click Next

    5. Click on Create and make sure that Targets is selected.

提交回复
热议问题