【发布时间】:2012-04-13 04:36:40
【问题描述】:
这是我的 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?
【问题讨论】:
标签: iphone objective-c ipad uiimageview