[iOS]自定義view使用xib

+ (instancetype)loadView {
    UINib *nib = [UINib nibWithNibName:@"ZZTicketProfitsReportHeadView" bundle:nil];
    ZZTicketProfitsReportHeadView *v = [nib instantiateWithOwner:nil options:nil].firstObject;
    return v;
}
相關文章
相關標籤/搜索