0

I set the attribute line spacing for UILabel in xib with custom font and then run the code. The label having line spacing but not with custom font instead its shown with System font I think. Even, the font size is also not same that is large than I set.

I know the code for applying the line spacing, custom font. However, In my app I have many static text. I want to apply some attribute properties for it without reference.

  • OS X El Capitan, Xcode 7, Storyboard not followed
  • Custom Font: Installed in Mac and added in plist too
Cœur
  • 37,241
  • 25
  • 195
  • 267
Mohd Sadham
  • 435
  • 3
  • 19
  • show your code, please. – john elemans Mar 11 '16 at 00:03
  • @johnelemans What code you want? Am trying in Xib. My objective is to avoid reference for labels and set line spacing with custom font. – Mohd Sadham Mar 11 '16 at 07:31
  • I'm sorry, I read your question too quickly. I tried installing a font on my machine and then using it in a UILabel, but I can't even see the font in IB! Here is a related post; http://stackoverflow.com/questions/14109047/added-custom-font-not-working-in-xcode – john elemans Mar 11 '16 at 17:12
  • @johnelemans This is not my problem. My custom font is shown in app when the label is plain. Even i can use in attributes but not in case of line spacing through XIB! – Mohd Sadham Mar 12 '16 at 04:51

0 Answers0