tags:

views:

116

answers:

1

model no of iphone through code

+3  A: 
UIDevice *myCurrentDevice = [UIDevice currentDevice];  

NSLog(@"%@", [myCurrentDevice model]);
NSLog(@"%@", [myCurrentDevice systemName]);
NSLog(@"%@", [myCurrentDevice systemVersion]);

// result

iPhone
iPhone OS
3.1.2

willc2