xib

2022-04-05  本文已影响0人  Alan龙马

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 关联控制器

image.png
上一篇下一篇

猜你喜欢

热点阅读