Checking the device family and sizes too!
- Check which device is in running (iPad or iPhone)
- If its a iPhone it will be check that size too for 3.5" & 4" screen
- #import "iPhoneDevice.h"
if ([iPhoneDevice checkiPhone])
{
// iPad
}
else
{
if([iPhoneDevice checkiPhoneSize])
{
// iPhone 4"
}
else
{
// iPhone 3.5"
}
}
Simple example for checking the Device with its size too!