I have an app where I subclass UIViewController and add some characteristics to it, then use it for every viewcontroller within my app. I was just wondering what is the naming convention for this? I’ve called it UIDefaultViewController, but I was wondering if there is someway I can also name it UIViewController, or if there is a proper naming convention for this? I also have my own implementations of UITextView and some other common UI classes and was just wondering how to name them when they’re the primary version of their parent class that I’m using within my app.
I have an app where I subclass UIViewController and add some characteristics to it,
Share
You should definitely not use the “UI” prefix. It’s reserved for classes from UIKit.framework. I would suggest coming up with your own prefix (initials, company initials, something like that) and using that instead. So I might have CFMViewController, say.