Ios 如何调整4英寸theos应用程序

Ios 如何调整4英寸theos应用程序,ios,screen,device,theos,Ios,Screen,Device,Theos,我想使用theos制作应用程序,但它似乎没有经过4英寸iPhone/iPod的调整。 我如何解决这个问题 当我在下面编写代码并安装时,视图变得像这个屏幕截图 #import "RootViewController.h" @implementation RootViewController - (void)loadView { self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]

我想使用theos制作应用程序,但它似乎没有经过4英寸iPhone/iPod的调整。 我如何解决这个问题

当我在下面编写代码并安装时,视图变得像这个屏幕截图

#import "RootViewController.h"

@implementation RootViewController
- (void)loadView {
self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease];
self.view.backgroundColor = [UIColor whiteColor];
}

- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[btn setTitle:@"Button" forState:UIControlStateNormal];
btn.frame = CGRectMake(0,0,100,100);
[self.view addSubview:btn];
[btn release];

CGRect jbrect = [UIScreen mainScreen].bounds;
NSString *jbstr = [[NSString alloc] initWithFormat:@"%f,%f,%f,%f",jbrect.origin.x, jbrect.origin.y, jbrect.size.width, jbrect.size.height];

UIAlertView *jbalert = [[UIAlertView alloc] initWithTitle:@"Called!" message:jbstr delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles:nil];
[jbalert show];
[jbalert release];

}
@end

有一个非常简单的解决方案:只需在“资源”文件夹中添加一个黑色的.png图像,并将其命名为“默认”-568h@2x“就像