Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible values for [[UIDevice currentDevice] systemName];

Tags:

ios

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?

like image 489
woz Avatar asked Aug 20 '12 13:08

woz


3 Answers

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

like image 199
Johannes Weiss Avatar answered Sep 22 '22 03:09

Johannes Weiss


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.

like image 41
phenmod Avatar answered Sep 26 '22 03:09

phenmod


after the ios version 15 update ipad os has replace the value for "iOS" to "iPadOS"

like image 42
raj Avatar answered Sep 26 '22 03:09

raj