我很好奇的iPhone4如何運作出框架項目的大小,例如:屏幕分辨率和幀大小?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
MyController *tempController = [[MyController alloc] init];
[[tempController view] setFrame:CGRectMake(0.0,20.0,320.0,460.0)];
[self setMyController:tempController];
[tempController release];
...
這個既充滿了iPhone3_sim,iPhone4_sim & iPhone4_device的整個屏幕?我有點期待iPhone4的尺寸翻倍,是否有某種自動應用縮放(加倍),如果有的話,你如何設置/改變它?
乾杯加里
非常感謝,你知道這在文檔中描述過嗎? – fuzzygoat 2010-09-17 12:48:56
@fuzzygoat在這裏:https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/SupportingResolutionIndependence/SupportingResolutionIndependence.html – 2010-09-17 15:12:33