【每日技术点】 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

效果图如上。

posted @ 2013-12-10 16:01  ymonke  阅读(123)  评论(0编辑  收藏  举报