Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
simulating iphone behavior on ipad
-
@omz, is there any way to tell pythonista running on iPad to behave as if it was on iPhone?
for instance, if I change the size of the top level view to be iphone sized, will pythonista automatically show the appropriate menus, etc?from objc_util import * f=UIApplication.sharedApplication().keyWindow().frame() f.size.width=320 f.size.height=480 f=UIApplication.sharedApplication().keyWindow().frame=f
This seems to induce some different functionality, (the + button in the bottom corner, some menus behave differently, etc), but I suspect this is still not exactly like iPhone display (i think you hide the status bar, line numbers, and maybe have a narrower titlebar?)
which settings are different between ipad and iphone that can be changed via objc to simulate the iphone pythonista experience?
I would like to be able to create views that work well on iphone, but don't have one to test on, so I'd like to simulate an iphone sized screen on the ipad...
-
@JonB , not sure if you seen this or not. I didn't scroll though the thread. It took more than 10 mins to find it. God I hate the search here.
Put this is a post from @omz some time ago
https://forum.omz-software.com/topic/2167/iphone-screen-size-on-an-ipad -
thanks... i missed that one
-
@JonB , but would be very interested what you come up with. If you need it for yourself, I am sure you will do some great stuff