【发布时间】:2010-04-22 07:42:25
【问题描述】:
我创建了一个被拒绝的应用程序,因为 Apple 说我的应用程序没有显示正确的 iPad 窗口,并且它显示了相同的 iPhone 屏幕但左上角对齐。
在模拟器上运行,我让我的应用程序准确地显示它应该显示的内容,一个大的 iPad 视图。
我作为 Apple 裁判的应用正在设备上显示:
alt text http://www.balexandre.com/temp/2010-04-22_0939.png
我的应用运行模拟器(仅 50% 缩放):
alt text http://cl.ly/cCH/Screen_shot_2010-04-22_at_09.40.24.png
我在 Application Delegate 中的代码是我 published before
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// The default have the line below, let us comment it
//MainViewController *aController = [[MainViewController alloc] initWithNibName:@"MainView" bundle:nil];
// Our main controller
MainViewController *aController = nil;
// Is this OS 3.2.0+ ?
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 30200
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
// It's an iPad, let's set the MainView to our MainView-iPad
aController = [[MainViewController alloc]
initWithNibName:@"MainView-iPad" bundle:nil];
else
// This is a 3.2.0+ but not an iPad (for future, when iPhone/iPod Touch runs with same OS than iPad)
aController = [[MainViewController alloc]
initWithNibName:@"MainView" bundle:nil];
#else
// It's an iPhone/iPod Touch (OS < 3.2.0)
aController = [[MainViewController alloc] initWithNibName:@"MainView" bundle:nil];
#endif
// Let's continue our default code
self.mainViewController = aController;
[aController release];
mainViewController.view.frame = [UIScreen mainScreen].applicationFrame;
[window addSubview:[mainViewController view]];
[window makeKeyAndVisible];
return YES;
}
关于我的目标信息,我有 iPhone/iPad
alt text http://cl.ly/cwB/Screen_shot_2010-04-22_at_09.33.12.png
我的问题是,我应该如何构建应用程序?
- 使用基础 SDK
- iPhone 模拟器 3.1.3
- iPhone 模拟器 3.2
我的活动配置是Distribution,活动架构是arm6
任何已经将应用程序发布到 iTunes Connect 的人可以解释一下设置吗?
P.S.我遵循了Building and Installing your Development Application 上的开发者指南,该指南在Creating and Downloading Development Provisioning Profiles 上找到,但没有说明任何相关内容,正如我所做的那样,该应用被拒绝了。
【问题讨论】:
标签: build app-store-connect universal-binary