I have a UILabel which I set a font size and a font name with Interface Builder. Now I have to read the values of both in my ViewController.
How can I do this?
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.
Add a property to your view controller’s .h file:
Link the label to this IBOutlet under “File’s Owner” outlets in Interface Builder. If not using ARC, make sure you release it in -dealloc
Then to get the font name and size all you need is