I’m developing an application that has a view with UILabel, UIButton, UIImageView or UITextField.I want to create programatically the UIlabel, UIbutton, UIImageView or UItextfield with the information that i will receive from web service.
After create the UIlabel, UIbutton, UIImageView or UITextField programatically, how can I access then?
I will have a lot objects, and my idea was to have a name/ID to each one (I don’t know if it is possible).
Then I would have a array with strings that have the objects names.
NSString *textFieldName = @"nameX";
Now with the name of the object how could I access then, for example to get the value?
What you need for that is using a tag, you put a tag to the view and then you retrieve like this: