In the past I have created subclasses of NSObject and return various types from strings to UIColor's.
Here is an example piece of code:
However I recently started a new project in iOS 8 and have gone to do the same thing but I am getting the following error:
I am able to return NSString's, NSDictionary's, etc but am unable to return things that are UI based. So UIColor, UITabBar, etc.
The first project was created before updating to Xcode 6 and the second one (one with issue) was created after upgrading. Both are using Objective C.
I can't see any difference between the 2 files. Does anyone know why I might be experiencing this issue?
Many thanks.