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.
Correct iPad Screen Size
-
Hi guys,
I need some help for my code example....
I am usingui.get_screen_size()
to get my width and height.... but when i use the iPad in split screen the width and height is not correct... in my case both 1366 (width)Is there a way to solve this here ?
-
@DavinE please, try as method of an ui.View
def get_screen_size(self): app = UIApplication.sharedApplication().keyWindow() for window in UIApplication.sharedApplication().windows(): ws = window.bounds().size.width hs = window.bounds().size.height break return ws,hs
-
@cvp said:
@DavinE please, try as method of an ui.View
def get_screen_size(self): app = UIApplication.sharedApplication().keyWindow() for window in UIApplication.sharedApplication().windows(): ws = window.bounds().size.width hs = window.bounds().size.height break return ws,hs
@cvp my friend, this works wonderfully
Thanks a lot :D