I want to create a category on UIColor
in my app using Xcode 6. But the thing is that in Xcode 6 there is no Objective-C category file template.
Is there any option to create a category in Xcode 6?
They didn't forget. They just moved it without telling anyone.
Click File
-> New
-> File
Select Objective-C file
under Sources
in iOS
or Mac OS
respectively and Click Next
Now under File Type:
choose either Category
, Protocol
, or Extension
PS. Under File Name:
whatever you type here will be either the Category
, Protocol
, or Extension
Name.