How to subclass UIView?

This may seem like a silly question, but I can't remember how to subclass UIView. Can someone point me in the right direction?

+4
source share
1 answer

example (.h file):

#import <UIKit/UIKit.h> @interface MySubclassedView : UIView { } @end 

Or just add a new class to your project and tell UIView subclass of UIView , and the template will be created.

+7
source

All Articles