UILable经过drawTextInRect修改文字间距

重写UIlable的drawTextInRect Method,而后设置UIEdgeInsets。web - (void)drawTextInRect:(CGRect)rect{ UIEdgeInsets insets = {0, 5, 0, 15}; [super drawTextInRect:UIEdgeInsetsInsetRect(rect, insets)]; }
相关文章
相关标签/搜索