I want to iterate thru all controls existing in a View on iOS when the view is loaded.
Also, it would be acceptable to have a callback that is called when these controls are initialized.
How can I obtain 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.
To iterate through subviews (controls) in a parent view, call the parent view’s
-subviewsmethod:You could subclass the control, creating a custom control. Here, you override the custom control view’s initializer method. In this method, you would call the parent’s initializer, and add your custom code.