我有这个代码didFinishLaunchingWithOptions
:
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UIViewController *myViewController = [[UINavigationController alloc] initWithRootViewController:[[ViewController alloc] init]];
self.window.rootViewController = myViewController;
[self.window makeKeyAndVisible];
我想让 UIImageView 出现、播放动画并在那之后消失。我将此代码添加到我现有的代码中,但没有发生任何事情:
UIImageView *imgView = [[UIImageView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
NSArray *animationFrames = [[NSArray alloc]initWithObjects:blablahblah, nil];
imgView.animationImages = animationFrames;
imgView.animationDuration = 1.5;
imgView.animationRepeatCount = 1;
我在这里做错了什么?提前致谢!