xib

作者: Alan龙马 | 来源:发表于2022-04-05 21:32 被阅读0次

    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

    相关文章

      网友评论

          本文标题:xib

          本文链接:https://www.haomeiwen.com/subject/ccdlsrtx.html