How can I restore the iPad frame around iOS Simulator 5.1?

你。 提交于 2020-01-14 07:38:08

问题


With Xcode 4.3.1, Apple ships the new iOS 5.1 Simulator. Unfortunately, it looks like when you run iPad hardware, there's no longer the iPad frame around the sim window. Does anyone have any idea how to restore that frame? I often use the simulator to demo features to others via screen sharing, and it looks much better when it's in the iPad frame. Thanks in advance.

Interestingly, btw, there's no longer a frame.png. Instead, now within iOS Simulator's package, you only find: ./Contents/Resources/frame_1only_.png


回答1:


Download Xcode 4.2.1 from the dev center... other than that, there's nothing you can do about it. Besides, I rather like the new minimalistic simulator. (BTW, there is a rationale behind this: the new retina simulator is just too big to provide a good bezel image).

EDIT (to address the core of the problem): Even if you could find a suitable bezel image, how could you edit the internals of the simulator? My proposal is: find an old Xcode with the proper sim, or mod the simFinger application to include an iPad frame (to my knowledge, it only works with the iPhone sim), and iPad dimensions. Available here: https://github.com/atebits/SimFinger

EDIT 2: As it turns out, it does support the iPad, and bezel!




回答2:


The frame disappears if the simulator + frame does not fit on your screen. If I move it to my big external monitor, switch to iPhone and back to iPad, I have the frame again.




回答3:


As everyone said, make sure your simulator zoom is set to 100% by using CMD-1.

With the new retina resolution, you need to have a Retina Macbook to get it to work. You have to set your display resolution to max, and reset the simulator. This will then show the frame around both the iPad and iPad Retina simulators.




回答4:


I'm not sure if this is a bug, or a legitimate workaround, but if you are using the iOS 5.1 simulator, and go to Hardware > TV Out - turn on any of the options (uncheck disabled), the frame suddenly appears around the device.

Again... don't know if that will stick in future versions of xCode, but it worked for me for now!




回答5:


It appears it is looking at whether or not there is adequate screen resolution to display the bezel. For example, I have a 17" Macbok pro that I develop on (1920x1200 resolution). When I launch an iPad development project and the suimulator comes up on my Macbook pro's desktop, no problem, the bezel shows. But let's say I then drag it over to my external monitor which is 1920x1080, then quit and relauinch the simulator... it comes up without a bezel.

My co-worker who has a Macbook Pro 13" (lower resolution), never sees the bezel. I suspect the newer retina Macbook Pros will always show a bezel.

This is of course, al pertaining to the regular, non-retina iPad simulator. I am not sure if given adequate screen resolution, the iPad retina simulator would show a bezel or not?




回答6:


For me, in the iOS simulator, clicking on: Hardware -> Device -> iPhone (not the retina ones).

and then: Window -> Scale -> 100% fixed the problem, and the frame reappeared.

On my work 13inch MBP, I can see the frame only with this setting.




回答7:


CMD + 1 and CMD + 2 keyboard shortcuts toggle the simulators view mode. Depending on the device, retina or non retina, you will see the bezel if your screen resolution can accomodate it.




回答8:


Window->Scale->100% did the trick for me... when it gets set to 75% it loses the frame



来源:https://stackoverflow.com/questions/9756327/how-can-i-restore-the-ipad-frame-around-ios-simulator-5-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!