新手手机游戏开发,横屏的, 积分墙广告只支持竖屏,需要临时换一个方向,怎么处理?
解决方案 »
- 求助:windows下如何安装safari的开发者证书
- client的CFSocket无法使用CFSocket进行读写
- 求解:"预置描述文件已过期"是怎么回事!
- "显示包内容" 中的内容是怎么添加进去的?
- 看了论坛介绍IPHONE的开发环境的安装好复杂,但是专业的苹果论坛一直在介绍给普通的PC机器装苹果的系统,那直接装苹果的系统后,可以装开发环境?
- ios开发 BLE设备唯一标识
- 求救,IOS程序设置不起TCP_KEEPINTVL
- xcode6 objective-c 点击事件里面如何实现页面跳转
- iOS弹出一个tableView
- 用html5+asp.net 写的手机网站在ios下点击无效
- 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设置为横屏模式