我可以在Xcode模拟器中测试加速度计效果吗? [英] Can i test accelerometer effect in Xcode simulator?

查看:162
本文介绍了我可以在Xcode模拟器中测试加速度计效果吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个管理图片视图的alpha属性的应用。当用户移动手机时,alpha属性增加/减少。我在这里看到了一些关于使用UIAccelerometer的子类的信息。任何人都可以帮助我这样做,以便我可以在模拟器上测试它。
谢谢

i am creating a app that manage the alpha property of image views. alpha property increase/decrease as the user moves the phone.I saw something on here about using a subclass of UIAccelerometer. Can any one help me to do this so that i can test it on simulator. Thanks

推荐答案

你不能用模拟器测试它,你应该使用真实设备测试加速度计。
查看此处,它可能会对您有所帮助。

Yo cant test it using simulator, you should use real device for testing accelerometer. Check here, it may help you.

这篇关于我可以在Xcode模拟器中测试加速度计效果吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆