Home  >  Q&A  >  body text

Xcode新建iOS Cocoa Touch Class和新建Header File与Objective-C File有区别吗?

新建Cocoa Touch Class时要选group吗?我这里选不了,新增的2个文件就在项目的上面,.m文件没有Target Membership属性。

PHP中文网PHP中文网2764 days ago444

reply all(3)I'll reply

  • 黄舟

    黄舟2017-04-18 09:53:53

    It has been solved. The group cannot be selected when creating a new one. The newly created .h and .m files are outside the project. They can be dragged and dropped into the corresponding group of the project

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:53:53

    When creating a new Class, check the corresponding Targets option.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:53:53

    The essence is the same, it’s just that Xcode does a little more to help you create this type of file.

    reply
    0
  • Cancelreply