I've been trying to figure this out for the past few days but keep on getting the same screen size for iPhone 5,5s and 6.--> Height -1136 Width 640. How do I tell the difference between these two devices? Is it the simulator? Do I have to be running on a real device to get the current dimensions? What am I doing wrong? I'm running Xcode 6 on Yosemite and testing with the simulator.
float heightOfScreen = [[UIScreen mainScreen ] nativeBounds].size.height;
float widthOfScreen = [[UIScreen mainScreen ] nativeBounds].size.width;
CGSize size = CGSizeMake(widthOfScreen , heightOfScreen);
NSLog(@"Size: %@", NSStringFromCGSize(size));
// Iphone 6 plus H-1704 W-960
// Iphone 6 H-1136 W-640 <--- (why are they the same)
// Iphone 5s H-1136 W-640 <---
// Iphone 4s H-960 W-640