sebyddd/SDVersion

How to detected iPhone5 or iPhone 5C?

Closed this issue · 1 comments

I found iPhone5 and iPhone 5C are the same DeviceVersion NSInteger.
Your code:

typedef NS_ENUM(NSInteger, DeviceVersion){
iPhone4 = 3,
iPhone4S = 4,
iPhone5 = 5,
iPhone5C = 5,
iPhone5S = 6,
iPhone6 = 7,
iPhone6Plus = 8,

How can my app know user's device is iPhone 5C?

You can still use the if statement, as in the ReadMe file, but just for visibility, i reordered the devices list in c5ebe37.

Thank you!