NSParagraphStyle line spacing ignored

后端 未结 6 1230
梦如初夏
梦如初夏 2020-12-23 17:48

A simple test that is failed: Make a new project with just one subview (UITextView) and put the following in:

- (void)viewDidLoad
{
    [super viewDidLoad];         


        
6条回答
  •  太阳男子
    2020-12-23 18:13

    In my case, none of the paragraph styling was working. The fix was to set the attributed text on the label AFTER doing any frame adjustments on the label. :)

提交回复
热议问题