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