需要delegate文件中实现下面到方法:
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
iOS应用方向设置方法
本文介绍如何在iOS应用中通过实现代理方法来支持特定的界面方向。这涉及到在delegate文件中实现application:supportedInterfaceOrientationsForWindow:方法。
需要delegate文件中实现下面到方法:
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window

被折叠的 条评论
为什么被折叠?