'iphone sdk'에 해당되는 글 1건

  1. 2009.04.11 Image Animation

Image Animation

iDev 2009.04.11 09:12
NSArray *myImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"myImage1.png"],
[UIImage imageNamed:@"myImage2.png"],
[UIImage imageNamed:@"myImage3.png"],
[UIImage imageNamed:@"myImage4.gif"], nil];

UIImageView *myAnimatedView = [UIImageView alloc];
[myAnimatedView initWithFrame:[self bounds]];
myAnimatedView.animationImages = myImages;
myAnimatedView.animationDuration = 0.25; // 시간, 초
myAnimatedView.animationRepeatCount = 0; // 0 = 무한반복
[myAnimatedView startAnimating];
[self addSubview:myAnimatedView];
[myAnimatedView release];

신고
Posted by KraZYeom