iOS 设置UILabel 的内边距

iOS 设置UILabel 的内边距

- (void)drawTextInRect:(CGRect)rect {
UIEdgeInsets insets = {0, 5, 0, 5};
[super drawTextInRect:UIEdgeInsetsInsetRect(rect, insets)];
}

posted @ 2015-10-26 17:23  tongyuling  阅读(5133)  评论(0编辑  收藏  举报