Last Updated: February 25, 2016
·
1.084K
· mandrigin

Get the color of current iPhone (untested yet)

https://twitter.com/liamdunne/status/381343294577721344

@tapbot_paul There’s a private method call that will give you that:

[[UIDevice currentDevice] _deviceInfoForKey:@”DeviceColor”]

https://twitter.com/FreeManRepo/status/381044432495472640

[[UIDevice currentDevice] _deviceInfoForKey:@”DeviceEnclosureColor”] 

returns the back plate color on current device.

1 Response
Add your response

Use with caution, while a neat trick, this sounds like a great way to get your app rejected!

over 1 year ago ·