首页 > 代码库 > 创建视图的常用代码

创建视图的常用代码

技术分享
 1 #pragma mark UI 相关
 2 + (instancetype)voteGuestView{
 3 XiaoCongXiuVoteGuestView *guestView = [[[NSBundle mainBundle] loadNibNamed:@"XiaoCongXiuVoteGuestView" owner:nil options:nil] firstObject];
 4 return guestView;
 5 }
 6 
 7 - (void)awakeFromNib{
 8 [super awakeFromNib];
 9 [self setupUI];
10 }
11 
12 - (void)setupUI{
13 }
View Code

 

创建视图的常用代码