Creating a label using NSTextField is blurry

后端 未结 8 1251
后悔当初
后悔当初 2021-01-06 03:05

I\'m trying to create a label programmatically using NSTextField, but it comes out blurry: screenshot

This is my code so far:

NSTextfield *textfield          


        
8条回答
  •  醉酒成梦
    2021-01-06 03:26

    If you created it via an XIB and it is blurry, I found the fix:

    [textField setStringValue:@""];
    

    If I comment this out it goes blurry; if put back it's crystal clear.

提交回复
热议问题