i use the following code to animate photos. it works well on simulator. but a blank screen on device... pls help thanks you
Quote:
- (void) viewDidLoad {
[super viewDidLoad];
image.animationImages =[NSArray arrayWithObjects:
[UIImage imageNamed:@"gift.png"],
[UIImage imageNamed:@"candle.png"],nil];
image.animationDuration = 3.00;
image.animationRepeatCount = 0;
[image startAnimating];
[self.view addSubview:image];
}
|