[ad_1]
Declare your method in your Interface
@interface AVView : UIView
- (UIView *) buildBestView;
@end
Use that in the other class
AVView *avView = [[AVView alloc] initWithFrame:CGRectMake:(0,0, 100, 100)];
[avView buildBestView];
3
[ad_2]
solved Creating a subclass of UIView [closed]