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  阅读(5173)  评论(0)    收藏  举报