美文网首页
设置label的内边距

设置label的内边距

作者: 阶梯 | 来源:发表于2017-11-28 11:20 被阅读57次

//令绘制区域为原始区域,增加的内边距区域不绘制
[super drawTextInRect:UIEdgeInsetsInsetRect(rect, self.edgeInsets)];

重写这个方法就可以了.边距就是后面的edgeinsets


3951511839033_.pic.jpg

相关文章

网友评论

      本文标题:设置label的内边距

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