Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些对方向变化作出反应的代码,经过大量调试和挫折后,我意识到虽然在硬件上测试我的代码工作正常,但在模拟器中测试时,虽然模拟器是面向横向的,但代码读取它的当前方向作为肖像。这有什么原因吗?令人沮丧。
在模拟器上,您可以在 2 轴上进行更改。在 3 轴设备上。
使用真机调试时会遇到一些有趣的案例,强烈推荐。你可以得到一个大约 100-200 美元(二手)。