Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detected iPhone5 or iPhone 5C? #12

Closed
mrgaolei opened this issue Nov 13, 2014 · 1 comment
Closed

How to detected iPhone5 or iPhone 5C? #12

mrgaolei opened this issue Nov 13, 2014 · 1 comment

Comments

@mrgaolei
Copy link

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?

@sebyddd
Copy link
Owner

sebyddd commented Nov 13, 2014

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!

@sebyddd sebyddd closed this as completed Nov 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants