在真实 iPhone 设备上进行应用程序旋转测试
我已经创建了我的第一个 iPhone 应用程序(非常简单的应用程序),但我没有 iPhone 来测试旋转错误。我不想购买(昂贵的)苹果 iPhone 只是为了测试旋转。
我的应用程序有 3 个视图控制器。这是详细信息。
第一个视图控制器有 1 个标签、1 个圆角矩形按钮、1 个日期选择器。它还显示 1 个错误警报。没有标签文本或警报文本太长
第二个视图控制器有 1 个表视图,仅显示 5 条记录。
第三个视图控制器有 1 个文本视图。
我没有定制任何东西。我的意思是没有自定义图标、自定义警报、自定义故事视图或自定义文本视图。它不会尝试访问互联网。没什么复杂的,并且在模拟器上运行良好。
轮换会有问题吗?我认为只有在定制的情况下,轮换才会引起问题。默认标签文本、默认表格视图设置应该可以在旋转时正常工作。
如果我提交我的应用程序而不在实际的 iPhone 设备上进行测试,可以吗?
I have created my first iphone application (very simple app) and I don't have an iphone to test errors on rotation. I don't want to purchase (expensive) apple iphone just for testing rotation.
My app has 3 view controllers. Here is the detail.
First view controller has 1 label, 1 round rectangle button, 1 datepicker. It also shows 1 alert on error. No label text or alert text is too long
Second view controller has 1 table view which shows only 5 records.
Third view controller has 1 textview.
I didn't customize anything. I mean there is no custom icon,custom alerts, custom taleview or custom textview. It doesn't try to access internet. Nothing is complicated and it is running fine on simulator.
Will there be any problem on rotation? I think rotation can cause problems only if there is something customized. Default label text, default table view settings should work fine on rotation.
Is it OK if I submit my app without testing it on an actual iphone device.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
在提交应用程序之前,您应该始终在设备中测试应用程序。无论如何,在这种特殊情况下,您可以在设备模拟器中模拟旋转。我认为是在硬件选项卡中,您可以在其中选择设备的方向。
You should always test an app in a device before submiting it. Anyway, in this particular case, you can simulate rotation in the device simulator. I think is in the hardware tab, where you can choose the device's orientation.
考虑一下 iPod Touch——比 iPhone 便宜。
就我个人而言,我认为您计划让其他人使用该设备,那么您就不能不在设备中进行测试。您无法真正在模拟器上测试 UI。您无法用一只手握住模拟器并尝试用拇指使用该应用程序。
Consider an iPod Touch - cheaper than an iPhone.
Personally I think that you plan for others to use the device then you can't NOT test in a device. You can't really test the UI on the Simulator. You can't hold the simulator in one hand and try to use the app with your thumbs.
使用模拟器检查旋转。在模拟器中,转到“硬件”,然后“向右旋转”或“向左旋转”。当然,除非您在实际设备上进行测试,否则无法知道在实际设备上是否会出现问题。我强烈建议购买 iPhone 或更便宜的 iPod touch。
Use the simulator to check rotation. In the Simulator, go to Hardware, then Rotate Right or Rotate Left. Of course, there's no way of knowing if anything will go wrong on an actual device unless you test on one. I would highly recommend buying either and iPhone or the cheaper iPod touch.
您可以在模拟器中测试旋转。
You can test rotation in the simulator.
启动 iOS 模拟器,在模拟器主菜单中单击“硬件”,您应该会看到 2 个用于向左和向右旋转模拟器的菜单项。单击其中一个,您将看到您的 GUI 是否有任何问题
编辑_:我总是会在设备上测试应用程序。模拟器,顾名思义,就是一个模拟器。它的行为可能与设备不同。这不是模拟器...
Start the iOS-Simulator, in the Simulators main menu click on "Hardware" and you should see 2 menu items for rotating the simulator to the left and to the right. Click on one and you'll see if there are any problems with your GUI
Edit_: I would always test an App on a device. The simulator is, as the name says, just a simulator. It may behave differently than a device. It's not an emulator...