新手手机游戏开发,横屏的, 积分墙广告只支持竖屏,需要临时换一个方向,怎么处理?
解决方案 »
- 检测ios的用户是否拒绝开启默认位置的实现
- object-c 解析xml。格老子的。
- how to associate a APP-ID to my Team Provisioning Profile?
- 哪有iphone手机软件开发的相关教程?
- ios 一个页面怎么获取到另一个页面UIImageView的image
- 手机游戏编程服务端
- ios推送证书无法导出p12文件,帮我看下
- iOS录制视频并压缩上传
- iOS设置TextView的阴影,求大神
- 提示静态库找不到 但是全都在项目里看得到
- xcode下不能直接给wstring赋值么?如:std::wstring sz=L"abc123你我他"
- 分享本人开发的首个个人应用【快易博】 新版出来啦,散分~
return UIInterfaceOrientationMaskLandscape;
}
在竖屏的ViewController中添加:-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskPortrait;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_6_0
- (NSUInteger)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
{
return UIInterfaceOrientationMaskAllButUpsideDown; //要是这里出现问题可能是xcode版本,xcode版本要4.5+
}
#endif设置为横屏模式