I've this code:
int i=0;
for (UIView *view in [self subviews]) {
//NSLog(@"index %d - i %d",index,i);
if (i==index) {
NSLog(@"index %d - i %d",index,i);
[view setAlpha:0.3];
[view setUserInteractionEnabled:NO];
}
i++;
}
"index" is a variable used to select the view to modify.
The problem is that nothing happen, instead if I run this code:
for (UIView *view in [self subviews]) {
[view setAlpha:0.3];
[view setUserInteractionEnabled:NO];
}
every view will be modify obviously, but i need the first code :)
ideas?