这是我的 NSTimer 代码
myTimer = [NSTimer scheduledTimerWithTimeInterval: 0.1 target: self
selector: @selector(callRightRotation:) userInfo: nil repeats: YES];
-(void) callRightRotation:(NSTimer*)myTimer
{
ImageView.tag =[ImageView tag]+1;
if ([ImageView tag]==50)
ImageView.tag=1;
[ImageView setImage:[UIImage imageNamed:[NSString stringWithFormat:@"kisok01%i.png",[ImageView tag]]]];
if ([ImageView tag]==1 || [ImageView tag]==50 )
{
[myTimer invalidate];
myTimer= nil;
}
}
在ipad中加载图像非常有效,但几乎没有......这里我使用“.jpg”格式图像,一张图像至少 300kb ......
我的问题是
1. Is it possible loading very fast and smoothly ?
2. if its not possible is there any alternative solution?