UILable經過drawTextInRect修改文字間距

重寫UIlable的drawTextInRect Method,而後設置UIEdgeInsets。web - (void)drawTextInRect:(CGRect)rect{ UIEdgeInsets insets = {0, 5, 0, 15}; [super drawTextInRect:UIEdgeInsetsInsetRect(rect, insets)]; }
相關文章
相關標籤/搜索