UIView init 和 initwithframe
按照这个流程操作
1.继承 UISearchBar ,
2.重写了- (id)init;和- (id)initWithFrame:(CGRect)frame
3.调用Recommend_searchBar *searchbar = [[Recommend_searchBar alloc] init];
4.发现- (id)initWithFrame:(CGRect)fr
原创
2014-07-21 16:57:50 ·
814 阅读 ·
0 评论