I want to change the hidden property to some of my elements programmatically based on button click. In javascript I would do document.getElementById('element').display = 'block'. Is there a way of doing this is iOS something like: self.'element'.hidden = NO;
UIView has a boolean property called hidden, which is NO by default, you can set it to YES to hide your view. To retrieve views, is it possible to assign tags, which are merely integers (default 0):
[myView setTag:10];
so..
[[myParentView viewWithTag:10] setHidden:YES];
This is pretty similar to js, otherwise you can iterate over subviews:
NSArray *viewsArray = [parentView subviews];
for (UIView *view in viewsArray) {
// ...
}