我明白iOS 4.2也适用于iPad。下面的代码是我们用来识别设备的标准模式。 4.2 iPad会如何改变。我应该更改代码来考虑设备类型而不是版本?识别iPad的设备iOS 4.2
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 30200
CGRect frame = [[UIScreen mainScreen] bounds];
self.view.frame = frame;
#else
CGRect frame = [self.view bounds];
#endif