I haven’t found the option of UIImageView to choose from dropdown during creating objective-c class. I am using xcode 4.3. I want to know aren’t we allowed to extend UIImageView class.
Or do I have to inherit UIView ? Any sample structure of custom UIImageView class would be helpful.
I believe it’s considered bad practice to subclass UIImageView. If you take a look at this question, there are many examples of why you shouldn’t do it:
However, it is possible to subclass UIImageView. Just take a look at this question.
A good alternative, suggested in the aforementioned question, is to use a category instead of subclassing UIImageView:
Hope this helps!