omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    2
    4
    2211
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JonB
      JonB last edited by JonB

      @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...

      Phuket2 1 Reply Last reply Reply Quote 1
      • Phuket2
        Phuket2 @JonB last edited by

        @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

        1 Reply Last reply Reply Quote 1
        • JonB
          JonB last edited by

          thanks... i missed that one

          Phuket2 1 Reply Last reply Reply Quote 0
          • Phuket2
            Phuket2 @JonB last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors