所以我在做iOS上的Ray Wenderlich教程,在做按钮教程。当我运行该应用程序时,我得到的东西看起来像这样:
我有两个问题:
我经常看到模拟器以实际iPhone的形式出现,并且想知道这是否可行,或者该矩形是否是查看它的唯一方法?
我问的原因是当我将按钮连接到动作时(它说“已按下!”)。因此,它应该只显示在方框中(右下),还是应该显示在模拟器本身上(模仿用户在屏幕上看到的内容)?
Regarding your first question: Probably a problem with screen size. See also here How can I restore the iPad frame around iOS Simulator 5.1?
The output seen in the screenshot is produced with NSLog and won't be seen on the device. You need to add an UILabel or such and set its text.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句