2011/09/07 (2) 리스트형 UIImageView 프레임 애니메이션 사용하기 이미지를 프레임으로 보여주고 싶을 경우에는 UIImageView의 animationImages 속성을 사용하면 됩니다. ex ) UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(40, 30, 200, 200)]; imgView.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"img_satelite01.png"], [UIImage imageNamed:@"img_satelite02.png"], [UIImage imageNamed:@"img_satelite03.png"], [UIImage imageNamed:@"img_satelite04.png"], nil]; [i.. UIImageView 를 특정 기준점으로 회전 시키기 이미지를 특정 기준점으로 회전 시키고 싶을 경우에는 layer 에 들어있는 anchorPoint 속성을 이용하면 됩니다. ex ) - (void)viewDidLoad { [super viewDidLoad]; image = [UIImage imageNamed:@"arrow_left.png"]; imageView = [[UIImageView alloc] initWithImage:image]; imageView.center = CGPointMake(100, 100); imageView.layer.anchorPoint = CGPointMake(0.5, 0.5); [self.view addSubview:imageView]; self.timer = [NSTimer scheduledTimerWithTimeInterv.. 이전 1 다음