Is it possible to loop through all the UILabels in my UIScrollview and change the color?
Is it possible to loop through all the UILabel s in my UIScrollview and
Share
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.
Assuming they’re all subviews (first-level children) of the scroll view, not of container views inside it…
If the labels are inside other views inside the scroll view, you’ll have to recurse into each of the subviews and do the same thing, but that’s a pretty simple step from the above. Example: