目前在我AppDelegate.m
我的代码:播放动画时的数据加载
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[self.window makeKeyAndVisible];
CGRect rect = [[UIScreen mainScreen] bounds];
UIImageView *imageView =[[UIImageView alloc] initWithFrame:rect];
imageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"Comp 2_00000.png"],..., nil];
imageView.animationDuration = 6;
imageView.animationRepeatCount = 1;
[imageView startAnimating];
[self.window addSubview:imageView];
return YES;
}
起着动画我有一次我的观点没有在我ViewController.m加载代码加载一些数据需要大约5秒。
我加载数据这样的使用JSON和URL:
NSURL *url = [NSURL URLWithString:@"http://xxxxxxxx.co.uk/untitled%20folder/jsonimages.php"];
NSData *jsonData = [NSData dataWithContentsOfURL:url];
NSError *error = nil;
NSDictionary *result = [NSJSONSerialization JSONObjectWithData:jsonData
options:NSJSONReadingMutableContainers error:&error];
反正是有对数据加载时要播放的动画?
为什么不可以编辑您的问题,以显示你如何加载你的数据? –