I’m trying to me a function that automatically returns the screen resolution on the device that I’m using (4S iPhone 3G 3GS 4, iPad, iPod, etc.), I wanted to avoid using the function that returns the type of device I and the second model go hand I set the resolution, I was wondering if you could have a function that will return the maximum screen resolution.
thanks
Does
[[UIScreen mainScreen] bounds]give what you want?