How do I change the text of a label but keep the formatting as in interface builder?
//This line changes the formatting and makes the text very small
lHolidayNightCount.text = [NSString stringWithFormat:@"%f", sHolidayDuration.value];
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should not happen, formatting should stay the same. Some elements have various “states” which can be formatted separately, maybe that’s the problem?
Another feature is the auto-adjust font-size, which you may want to disable. Whatever you do, it’s all solved in IB.