how can i implement an NSArray in this method (instead of just defining each one of the objects).
code:
- (void) fadeOutShuffleAnimation
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration: 0.8];
[UIView setAnimationDelegate:self];
juw1.alpha = 0.0;
juw2.alpha = 0.0;
juw3.alpha = 0.0;
juw4.alpha = 0.0;
...
[UIView commitAnimations];
}
if juw* are uiviews (or uiview subclasses) you can assign them unique tag property and loop through them like:
So actually after you create your items and add to parentView as subviews you might not need to store items as you can always get them using their tags.