腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(337)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
3
回答
注册
UIDeviceOrientation
我想要检测设备的当前方向。注意:即使我没有注册它,它也会给我提供方向 NSLog(@"Device Orientation= %d",[[UIDevice currentDevice] orientation]);当我更改方向时,在一个按钮上单击事件,我会得到设备方向。注意:在下面的代码中,我注册了接收设备方向通知的设备 -(IBAction) deviceOrientationChange
浏览 3
修改于2012-12-19
得票数 1
3
回答
UIDeviceOrientation
ipad
- (void)setData:(BCPlaylist *)list {
UIDeviceOrientation
orientation = [[UIDevice currentDevice] orientation
浏览 0
提问于2011-09-14
得票数 6
回答已采纳
1
回答
UIDeviceOrientation
通知
为了接收
UIDeviceOrientation
更改通知,必须做两件事: 登记通知
浏览 2
修改于2013-01-09
得票数 1
回答已采纳
2
回答
用于MPMoviePlayerViewController的
UIDeviceOrientation
我正在工作的应用程序中,我有一个项目的列表中,我想点击缩略图和视频必须播放,我的要求是只有MPMovieViewController必须旋转剩余的屏幕不得旋转为此我正在使用列表中的以下方法,使它每次肖像。但如果我正在使用它,我就不能旋转MPMoviePlayerViewController。} 所以我返回"UIInterfaceOrientationMaskAll“返回后,我能够自动旋转的MPM
浏览 4
提问于2013-06-17
得票数 0
1
回答
iPad的
UIDeviceOrientation
问题
我有一个iPad,我从一个横向的左边开始,但是当我这样做的时候:
UIDeviceOrientation
orientation = [[UIDevice currentDevice] orientation
浏览 3
提问于2011-07-23
得票数 0
回答已采纳
1
回答
xcode中
UIDeviceOrientation
之前的预期表达式
我的代码如下所示: if (
UIDeviceOrientation
== UIDeviceOrientationLandscapeLeft ||
UIDeviceOrientation
== UIDeviceOrientationLandscapeRight) {[[NSBundle mainBundle] loadNibNamed:@"Landscape.xib"
浏览 0
修改于2010-08-29
得票数 0
回答已采纳
1
回答
更改
UIDeviceOrientation
时的奇怪行为
当我改变方向时,我会这样做。{ { [self
浏览 3
修改于2011-08-29
得票数 0
1
回答
用NSNotificationCenter和
UIDeviceOrientation
改变方向
{ // Dispose of any resources that can be recreated.{
UIDeviceOrientation
orientacionActual = [UIDevice currentDevice].orientation
浏览 2
修改于2014-01-16
得票数 1
回答已采纳
1
回答
iOS:
UIDeviceOrientation
没有按预期工作
我一直在使用
UIDeviceOrientation
检查设备的物理方向。文档指出,这个方向不依赖于接口方向,生成的通知无论如何都会触发。 下面的示例代码可以在禁用定向锁定的设备上正常工作。每次设备旋转或抖动时,示例代码都会打印
UIDeviceOrientation
.rawValue。
浏览 11
修改于2020-10-26
得票数 0
1
回答
使用
UIDeviceOrientation
更改通知而不是viewillTransistionToSize
我已经设法支持我的应用程序的肖像和景观方向。AlternateViews的官方苹果示例代码确实使用了基于通知的方法。所以我想应该会没事的。
浏览 0
提问于2016-06-20
得票数 0
1
回答
安卓版的
UIDeviceOrientation
和UIInterfaceOrientation是什么?
在iOS上,设备方向可以与接口方向不同,因此我们有两个不同的枚举。我不一定要查找枚举。Android也有同样的区别吗?我想要检测接口方向的变化,而不是设备。
浏览 3
修改于2017-05-23
得票数 1
1
回答
Xcode:收到警告"implicit conversion from enumeration type
UIDeviceOrientation
“
: Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type '
UIDeviceOrientation
浏览 0
修改于2017-09-15
得票数 26
回答已采纳
1
回答
iPhone:在
UIDeviceOrientation
更改动画完成后执行代码
不确定我是否能正确地解释这一点,但我正在尝试执行一个方法设备定向动画结束。现在我有[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didRotate:) name:UIDeviceOrientationDidChangeNotification object:nil];,但它会立即触发。有没有办法在视图旋转动画完成后让它调用didRotate?
浏览 2
提问于2010-04-02
得票数 0
回答已采纳
1
回答
UIDeviceOrientation
在肖像画模式下的景观定位
我想检查设备的方向,我的设备是在肖像模式,应用程序是在景观。但我的代码有时会提供景观。这是我的代码: print("Landscape") else { }
浏览 3
提问于2022-02-04
得票数 0
1
回答
UIDeviceOrientation
*orientation = [UIDevice currentDevice].orientation;获取‘初始化中不完整的类型’错误
UIDeviceOrientation
*orientation = [UIDevice currentDevice].orientation;
浏览 0
修改于2015-10-23
得票数 0
回答已采纳
1
回答
枚举类型'enum
UIDeviceOrientation
‘到不同枚举类型' UIInterfaceOrientation’enum UIInterfaceOrientation的隐式转换
我正在使用Xcode 5.0.2,并在编译目标C代码时收到以下警告: 从枚举类型'enum
UIDeviceOrientation
‘到不同枚举类型'UIInterfaceOrientation’(又名
浏览 2
修改于2014-09-12
得票数 9
回答已采纳
1
回答
为什么我在
UIDeviceOrientation
中播放电影时不能正确检索MPMoviePlayerController?
但每次我试着玩MPMoviePlayerController之后
UIDeviceOrientation
orientation = [[UIDevice currentDevice] orientation
浏览 1
修改于2010-06-07
得票数 0
1
回答
在iOS应用程序中使用
UIDeviceOrientation
的if/else语句有问题
以下是检查设备的初始物理方向的方法:
UIDeviceOrientation
orientation = [[UIDevice currentDevice
浏览 0
修改于2017-11-03
得票数 0
回答已采纳
2
回答
从枚举类型“UIInterfaceOrientation”到不同枚举类型“
UIDeviceOrientation
”的隐式转换
对于下面的代码,我得到了上面的编译器警告。我理解接口和设备方向之间的区别,但不确定如何修改以消除警告。有人能帮上忙吗?if (ViewController != NULL) {} if (Contr
浏览 0
提问于2011-12-07
得票数 2
回答已采纳
2
回答
编译器警告...是否从枚举类型'UIInterfaceOrientation‘隐式转换为不同的枚举类型'
UIDeviceOrientation
'?
: Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type '
UIDeviceOrientation
浏览 0
修改于2013-07-27
得票数 13
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券