iphone - adjustsFontSizeToFitWidth is not working in ios 5 if the label is displayed in 2 lines -
i'm using adjustsfontsizetofitwidth
shrink label's size. things fine until tested in device ios 5. :p
self.maintitlelabel.numberoflines=2; self.maintitlelabel.adjustsfontsizetofitwidth = yes; self.maintitlelabel.minimumfontsize = 4;
this working fine in ios 6 , not in ios 5.
also in ios 5, shrinking when give this,
self.maintitlelabel.numberoflines=1;
why label not shrinking if having 2 lines ? might possible solution ?
note: text wont go beyond 2 lines per static data.
this property effective when numberoflines property set 1.
Comments
Post a Comment