Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个通用的 iOS 应用程序。在启动时应该显示一个简短的介绍视频,但我无法弄清楚如何正确处理这两种设备类型。它是一个主从应用程序。那么我应该何时何地加载我的视频以在启动时查看它?
提前致谢
如果您只想在初始启动时使用它,请将播放代码放入
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
或者,如果您想在每次应用激活时播放
- (void)applicationDidBecomeActive:(UIApplication *)application