What are the possible values of [[UIDevice currentDevice] systemName];
? In the docs from Apple, it doesn't give any examples of what could result, but all I can get from it is iPhone OS
, even on the simulator. Are there any other possibilities, and if not, why does this property even exist?
It's the operating system's name as the docs say. iOS was initially called "iPhone OS" (before iPad) but I think they didn't changed the systemName
for compatibility reasons.
In the future, they could implement [UIDevice systemName]
on (Mac) OS X and on that platform it would probably return Mac OS X
or OS X
.
The current use for this method is quite limited but you never know what ((partly) compatible) operating systems Apple or someone else may produce in the future...
for iPhone, the value for Operating System returned by Apple has been “iPhone OS”. In certain versions of iOS 9 and for apps published post-Xcode 8 running iOS 10, Apple has replaced the value for “iPhone OS” with “iOS.
after the ios version 15 update ipad os has replace the value for "iOS" to "iPadOS"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With