【每日技术点】 13.12.10

1、UITextView 如何设置行间距?

@interface UITextView ()

- (id)styleString; // make compiler happy

@end



@interface MBTextView : UITextView

@end

@implementation MBTextView

- (id)styleString {

    return [[super styleString] stringByAppendingString:@"; line-height: 1.2em"];

}

@end

效果图如上。

你可能感兴趣的:(技术)