美文网首页
拦截布局iOS

拦截布局iOS

作者: 柚子姑娘666 | 来源:发表于2018-10-10 21:02 被阅读0次

像这种布局还需要左右上下边距设置一下?no,no,no

我们只需要拦截布局即可

#pragma mark - 拦截布局

- (void)setFrame:(CGRect)frame

{

    frame.origin.x += DCMargin+5;

    frame.size.width -= DCMargin *3;

    [super setFrame:frame];

}

就完美了

相关文章

网友评论

      本文标题:拦截布局iOS

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