设备方向分析
我正在尝试决定是否应该在我的应用程序中实现横向模式。是否有分析软件可以告诉我用户是否尝试以横向模式查看我的应用程序?或者我应该写自己的方法?
I am trying to decide if I should implement landscape mode in my application. Is there an analytics software that will tell me if users try to view my app in landscape mode? Or should I write me own methods?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 heatma.ps SDK 查看应用程序每个屏幕的统计信息。它是自动的,因此您无需实现方向支持即可找到答案。
You can use heatma.ps SDK to view statistics for each screen of your application. It's automatic so you don't have to implement orientation support to find out.
很难判断,因为无论用户是否尝试进入横向模式,都会对所有方向进行
shouldAutorotateToInterfaceOrientation:
调用,并且 willRotate/didRotate 回调仅针对受支持的方向进行。您可以做的是记录每个shouldAutorotateToInterfaceOrientation。或者注册
UIDeviceOrientationDidChangeNotification
通知。无论视图控制器的方向如何,这都会返回 UIDeviceOrientation。请注意,这与 UIViewControllers 用于 interfaceOrientation 属性的 UIInterfaceOrientation 值不同。虽然两者是相关的:
It's hard to tell given the
shouldAutorotateToInterfaceOrientation:
call is made for all orientations no matter whether the user tries to go to landscape mode, and the willRotate/didRotate callbacks are only made for supported orientations. What you could do is log theon each shouldAutorotateToInterfaceOrientation. Or register for the
UIDeviceOrientationDidChangeNotification
notification. This returns a UIDeviceOrientation, no matter the orientation of you view controllers. Note that this is different from the UIInterfaceOrientation values which UIViewControllers use for the interfaceOrientation property.Although the two are related:
您可以使用 Google Analytics 用户计时来测量用户在特定方向上花费的时间间隔。您可以阅读有关跟踪本机 ios 应用程序的用户时间的信息:
https://developers.google.com/analytics/devguides/collection/ios /v2/usertimings
You can use Google Analytics User Timings to measure the time interval a user spends in a specific orientation. You can read about tracking user timings for native ios apps at
https://developers.google.com/analytics/devguides/collection/ios/v2/usertimings