Does anyone know how to change the line height (leading) on a textfield, preferably in Interface Builder?
I have been searching for this for about an hour but I can't find it.
A workaround is here:
Resizing NSTextField within Xcode 4 to fit default font?
(it is the OP that answers his own question :) ).
You might be able to do this in IB by choose the NSTextField and then opening the font panel. I believe it has a setting for leading.
Failing that, you can do it in code by applying an NSParagraphStyle using the lineSpacing property.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.