There are a number of answers to find the device name (iPhone 2,1; etc). (iOS - How to get device make and model?)
I\'d like to find a way to return the device model (M
It isn't possible, unfortunately.
As of now, the only to get the device's color is using a private API (like described in this answer).
Include the following directive
#include <sys/sysctl.h>
Implement the following method
-(NSString*)hwModel
{
size_t size;
char *kHwModel = "hw.model";
sysctlbyname(kHwModel, NULL, &size, NULL, 0);
char *answer = malloc(size);
sysctlbyname(kHwModel, answer, &size, NULL, 0);
NSString *results = [NSString stringWithCString:answer encoding: NSUTF8StringEncoding];
free(answer);
return results;
}
and in call the above method as follows:-
[self hwModel];
You can try to get the serial numbers,I remember that some letter is to determine the phone color, but I not sure.