Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
/ AppleDevices Public archive

识别苹果产品型号 Identify Apple product model

License

Notifications You must be signed in to change notification settings

XiFengLang/AppleDevices

Repository files navigation

[TOC]

AppleDevices

识别当前的苹果设备型号 -(Identify current Apple product model.)

Support

  • iPhone
  • iPad
  • Apple TV
  • Apple Watch
  • iPod touch

使用 & Usage

pod 'AppleDevices'

#import <AppleDevices/AppleDevice.h>

NSString * currentDeviceName

  • 识别当前设备型号
  • 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

BOOL isNotchDesignStyle

  • 判断是不是刘海屏机型,支持模拟器
  • 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

更新记录 & Change Log

  • 2021-4-29 ...
  • 2021-10-24 支持iPhone 13系列

已适配机型 & Supported Devices

iPhone

  • 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

  • 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

  • Apple TV 4K (2nd)
  • Apple TV 4K
  • Apple TV (4th)
  • Apple TV (3rd)
  • Apple TV (2nd)
  • Apple TV (1st)

Apple Watch

  • 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

  • iPod touch (7th)
  • iPod touch (6th)
  • iPod touch (5th)
  • iPod touch (4th)
  • iPod touch (3rd)
  • iPod touch (2nd)
  • iPod touch

参考 & Reference

About

识别苹果产品型号 Identify Apple product model

Resources

License

Stars

Watchers

Forks

Packages

No packages published