Objective-C equivalent of Java packages?

后端 未结 6 1195
青春惊慌失措
青春惊慌失措 2021-02-07 11:35

What is the Objective-C equivalent of Java packages? How do you group and organize your classes in Objective-C?

6条回答
  •  心在旅途
    2021-02-07 12:22

    Unfortuantely objective c doesn't have any equivalent to namespace of C#,c++ and package of java....

    The naming collisions could be solved by giving contextual name for example if u gonna give a name to method it should imply the class and module that it comes in so that...these problems could be avoided.

    Go through the following url to know more on naming convention as advised by apple

    http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/ProgrammingWithObjectiveC/Conventions/Conventions.html

提交回复
热议问题