iOS [[UIDevice currentDevice] systemName]的返回值

        无论是iPhone iPad ,还是模拟器上。[[UIDevice currentDevice] systemName]的返回值总是iPhone OS。现在做一个iPad项目,需要自定义UA,该UA包含了systemName的字段。结果H5那边当作是iPhone客户端了。H5上的视频只有声音,没有画面。

        后来,H5的同事说。是UA中包含了iPhone字样,他们当做是iPhone客户端来适配。iPhone客户端会一直展示海报图,并调起全屏播放器。

        查阅StackOverflow,有的开发者这么说的。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.

你可能感兴趣的:(uidevice,systemName,currentDevice)