xib引入xib
https://www.jianshu.com/p/84c6ea0c85c4
- (MJNavBarView *)navBarView {
if (!_navBarView) {
MJWeakSelf
_navBarView = [MJNavBarView mj_loadNibWithOwner:self];
_navBarView.autoresizingMask = UIViewAutoresizingNone;
[_navBarView.btnBack mj_addAction:^(UIButton *btn) {
}];
}
return _navBarView;
}
xib 关联控制器
网友评论