Juce Runtime Determine iPhone or iPad


#1

Is it possible to determine at runtime if the current iOS device is an iPhone or an iPad?

If so, please tell me how.

I already use #if JUCE_IOS to determine if on the iOS platform.


#2

There's no macro to do it - it'd be something you need to ask the OS. Haven't got any code to do it at the moment, but it might be a good feature to add.


#3

FYI: I've added this now - SystemStats::getDeviceDescription()