开发者

iPhone proximity sensor in landscape not available?

Is the proximity sensor available in landscape mode?

It only seems to work 开发者_JS百科for me when I'm in portrait...


I don't know if this is deliberate or a bug but apparently proximity sensor only works when the statusBar is in portraitOrientation so:

[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationPortrait animated:NO];

...does the trick.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜