There used to be a class prefix field on project template, which would help distinguish project classes with framework classes. This is no longer available in Xcode 6.1 project templates. What is the intension behind this?
According to some sources Apple removed this intentionally. They are no longer encouraging the use of prefixes for app code, with the reasoning that app code will not be reused and therefore will have little chance of name conflicts. See: http://scottberrevoets.com/2014/07/25/objective-c-prefixes-a-thing-of-the-past/
They are encouraging it only if you are developing a framework. For frameworks, you can add it using project inspector: Why is Xcode not prefixing filenames
I use the above method to add prefixes to my app code because I find it neater. Also if some framework I end up using doesn't follow the prefix convention, I can be sure there won't be a name conflict with my code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With