Check iOS device generation
How to check iOS device generation in its settings? If we go to Settings › General › About › Version then we see iOS version which is installed on device. H开发者_如何转开发ow to check iOS device generation in similar way?
Try UIDevice's systemVersion
property.
Erica Sadun's uidevice-extension is useful for this. In particular, see UIDevice-Hardware.h
精彩评论