[TOC]
识别当前的苹果设备型号 -(Identify current Apple product model.)
Support
- iPhone
- iPad
- Apple TV
- Apple Watch
- iPod touch
pod 'AppleDevices'
#import <AppleDevices/AppleDevice.h>
- 识别当前设备型号
- Identify current Apple product model with machine model, eg: iPhone 11, iPad Pro (11-inch).
@property (class, nonatomic, copy, readonly) NSString * currentDeviceName;
AppleDevice.currentDeviceName // iPhone 11
- 判断是不是刘海屏机型,支持模拟器
- iPhone device with a notch design style, the notch design style is started with the iPhone X, and Xcode simulator is supported.
@property (class, nonatomic, assign, readonly) BOOL isNotchDesignStyle;
AppleDevice.isNotchDesignStyle // true
- 2021-4-29
...
- 2021-10-24
支持iPhone 13系列
- iPhone 13 Pro Max
- iPhone 13 Pro
- iPhone 13
- iPhone 13 mini
- iPhone 12 Pro Max
- iPhone 12 Pro
- iPhone 12
- iPhone 12 mini
- iPhone SE (2nd)
- iPhone 11 Pro Max
- iPhone 11 Pro
- iPhone 11
- iPhone XR
- iPhone XS Max
- iPhone XS
- iPhone X
- iPhone 8 Plus
- iPhone 8
- iPhone 7 Plus
- iPhone 7
- iPhone SE
- iPhone 6s Plus
- iPhone 6s
- iPhone 6
- iPhone 6 Plus
- iPhone 5s
- iPhone 5c
- iPhone 5
- iPhone 4S
- iPad Air (4th)
- iPad Air (3rd)
- iPad Air 2
- iPad Air
- iPad (8th)
- iPad (7th)
- iPad (6th)
- iPad (5th)
- iPad (4th)
- iPad (3rd)
- iPad 2
- iPad
- iPad Pro (12.9-inch) (5th)
- iPad Pro (11-inch) (3rd)
- iPad Pro (12.9-inch) (4th)
- iPad Pro (11-inch) (2nd)
- iPad Pro (12.9-inch) (3rd)
- iPad Pro (11-inch)
- iPad Pro (10.5-inch)
- iPad Pro (12.9-inch) (2nd)
- iPad Pro (12.9-inch)
- iPad Pro (9.7-inch)
- iPad Mini (5th)
- iPad Mini 4
- iPad Mini 3
- iPad Mini 2
- iPad Mini
- Apple TV 4K (2nd)
- Apple TV 4K
- Apple TV (4th)
- Apple TV (3rd)
- Apple TV (2nd)
- Apple TV (1st)
- Apple Watch Series 6
- Apple Watch SE
- Apple Watch Series 5
- Apple Watch Series 4
- Apple Watch Series 3
- Apple Watch Series 2
- Apple Watch Series 1
- Apple Watch (1st)
- iPod touch (7th)
- iPod touch (6th)
- iPod touch (5th)
- iPod touch (4th)
- iPod touch (3rd)
- iPod touch (2nd)
- iPod touch