I had a bit one concerned with the device orientation.
The whole application was designed for a portrait mode. But when I tried to play animation in the method
- (void)applicationDidFinishLaunching:(UIApplication *)application;it was played by default in a landscape mode. I have rotated video immediately after starting but as a result a black square appeared for a second before animation.
So, here comes my solution:
- Remove [window makeKeyAndVisible] from applicationDidFinishLaunching.
- Add window.hidden = YES before playing the video.
- Add [window makeKeyAndVisible] after finishing video processing.
That's all. Thanks.