mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-24 17:03:36 +08:00
UIDevice: Add new models of iPhone and iPad Pro (#847)
This commit is contained in:
committed by
Ryan Nystrom
parent
63cc844b0a
commit
62e5af27a8
@@ -35,6 +35,9 @@ extension UIDevice {
|
||||
case "iPhone8,4": return "iPhone SE"
|
||||
case "iPhone9,1", "iPhone9,3": return "iPhone 7"
|
||||
case "iPhone9,2", "iPhone9,4": return "iPhone 7 Plus"
|
||||
case "iPhone10,1", "iPhone10,4": return "iPhone 8"
|
||||
case "iPhone10,2", "iPhone10,5": return "iPhone 8 Plus"
|
||||
case "iPhone10,3", "iPhone10,6": return "iPhone X"
|
||||
case "iPad2,1", "iPad2,2", "iPad2,3", "iPad2,4":return "iPad 2"
|
||||
case "iPad3,1", "iPad3,2", "iPad3,3": return "iPad 3"
|
||||
case "iPad3,4", "iPad3,5", "iPad3,6": return "iPad 4"
|
||||
@@ -44,7 +47,7 @@ extension UIDevice {
|
||||
case "iPad4,4", "iPad4,5", "iPad4,6": return "iPad Mini 2"
|
||||
case "iPad4,7", "iPad4,8", "iPad4,9": return "iPad Mini 3"
|
||||
case "iPad5,1", "iPad5,2": return "iPad Mini 4"
|
||||
case "iPad6,7", "iPad6,8": return "iPad Pro"
|
||||
case "iPad6,3", "iPad6,4", "iPad6,7", "iPad6,8", "iPad7,1", "iPad7,2", " iPad7,3 ", " iPad7,3 ": return "iPad Pro"
|
||||
case "AppleTV5,3": return "Apple TV"
|
||||
case "i386", "x86_64": return "Simulator"
|
||||
default: return identifier
|
||||
|
||||
Reference in New Issue
Block a user