nicklockwood / FXLabel

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#fxlabel
Other
816 stars 125 forks source link

'adjustsFontSizeToFitWidth' doesn't seem to work #21

Open gregplumbly opened 10 years ago

gregplumbly commented 10 years ago

Saw this was fixed previously but I seem to be having the same problem in 1.5.6 and 1.57

screen shot 2014-05-06 at 11 34 12

nicklockwood commented 10 years ago

I believe that the issue is that automatic scaling only works when numberOfLines = 1, which is the default when the FXLabel is created using a nib, but not when created programmatically.

I'll fix that, but in the meantime if you set numberOfLines = 1 yourself then it should work.

gregplumbly commented 10 years ago

Thanks Nick,

its quite possible I am doing something wrong but seem to still have the problem with numberOfLines = 1 screen shot 2014-05-06 at 12 48 11

nicklockwood commented 10 years ago

Ah, sorry. The problem only applies when minimum deployment target is set to iOS 7 or higher, so I didn't notice it. I'll investigate now.

nicklockwood commented 10 years ago

OK, this is fixed in 1.5.8

zvjerka24 commented 9 years ago

I have the same problem. Target is set to iOS 7 or higher and I'm adding label from code. Also, I'm using the latest FXLabel version 1.5.8.