그냥 어떻게 각 개체를 정의하는 대신이 방법으로 NSArray를 구현할 수 있습니다.iphone 코드 - NSArray를 사용하여
코드하기 :
for (loop tag condition){
[parentView viewWithTag: tag].alpha = 0;
}
을 그래서 실제로 당신이 항목을 만든 후 :
- (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];
}