iOS 设置UILabel 的内边距
时间:2014-05-14 10:12:21
收藏:0
阅读:4319
iOS 设置UILabel 的内边距
- (void)drawTextInRect:(CGRect)rect { UIEdgeInsets insets = {0, 5, 0, 5}; [super drawTextInRect:UIEdgeInsetsInsetRect(rect, insets)]; }
参考:http://stackoverflow.com/questions/3476646/uilabel-text-margin
评论(0)