新建了个xcode工程,测试的时候发现,手机上相关的旋转方法正常执行,IPAD上的相关旋转方法都不执行。最后发现的问题是info中的Supported interface orientations (iPad)项与General->Deployment Info下的Device Orientation配置不一致导致的。
info中的Supported interface orientations (iPad)项:
General->Deployment Info下的Device Orientation配置:
现将info中的Supported interface orientations (iPad)项中的item 0删除掉,IPAD上就可以正常旋转了。