We’re creating an app that we would like to run (the same layout!) on both the desktop (win/OSX) and iOS.
I know there are some problems with the pixel widths for iOS… Is there any simple way to make sure that the app will run on both and be usable on both resolutions?
Quite a few parts of the app (i.e. the main window) are scalable, but I want to make sure the buttons don’t look humongous on iOS or tiny on the desktop version.
on Android i query the system for the display DPI, then i use this as a calculation basis to size all my UI in terms of mm/inches. So, for example, i might want a button to be 5mm on all platforms, rather han a fixed number of pixels.
I can’t find a simular system call for iOS (anyone?), so right now i have a set of rather guessmatic calculations based on the operating system, screen size etc to determine the dpi.
That’s interesting Hugh…
Could you show me a simple example of how you then use this data?
I suppose having the query fior DPI in Juce would be interesting too…