I have a problem dynamically changing font size in UILB in my app, I have two labels.
- The size of the first label is 90 * 59
- The size of the second label is 59 * 59
The problem now is, The font size of the first label can be different
I have used the following method but it does not work.
CGFloat secondLabelsize = firstLabel.font.pointSize; [Second Label Set Font: [UIFont FontWithName: @ "Exo-Light" Size: SecondLabulousness]]; ViewDidLoad {[HR_LL set font: [UIFont FontA withname: @ "XO-Lite" Size: 55]]; }
Every time I got a size label of 55 size Pls suggest getting the current font size (first label) instead of the font size set on viewdidload.
Here is the answer,
label2.frame.size.width == Label1 .frame.size.width;
Note: If I use my error "=" if I use "==" then it gives a warning, but also gives the desired output. Anybody in the confusion is actually going to have to guide me to understand this.
Comments
Post a Comment