【发布时间】:2012-10-14 12:22:38
【问题描述】:
我有一个应用程序,我想在 iOS 设备上对其进行测试。该应用程序使用NIB 文件,没有故事板。
目标框架设置为 - 5.1 设备 - 通用。
我已创建 IPA 文件并上传到 TestFlightApp。
我已在我的 iPad 上下载并安装了该应用程序。奇怪的是,当我点击图标时,会显示黑屏,但没有其他任何反应。
我做了以下设置。
主界面 - SSDMainViewController
主情节提要 - 未设置,因为我在应用程序中没有任何情节提要。
不是IOS版本的问题,其他应用都可以正常使用。
编辑:当我双击 iPad 按钮时,我看到应用程序 没有崩溃。它正在后台运行。
编辑 2:有关该问题的更多信息。
好吧,我采用了一个基于视图的应用程序,它所有的 NIB 都没有故事板。它最初是一个针对 IOS 5.1 的 iPhone 应用程序,但后来我将项目下拉列表中的值更改为 UNIVERSAL。但我认为这没问题,因为当我将它安装在我的 iPad 上时,它什么也没显示。它还显示带有 iPhone 框架的黑屏,然后什么也没有。该应用程序仍在线程中。
困扰我的是我在AppDelegate 中做到了这一点:
我已经设置了
self.mainViewController = [[SSDMainViewController alloc] initwithnibname:@"SSDMainViewController" bundle:nil];
然后我设置了导航控制器,然后将视图推送给它。
我发现了更多信息
在控制台中显示。
应用程序应在应用程序启动结束时设置其根视图。
我的应用代表
ftipValue=0.25;
cardtype = @"American Express";
[cardtype retain];
[self CallFunctionForLogout];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Create an instance of YourViewController
//SSDMainViewController *yourViewController = [[SSDMainViewController alloc] init];
self.mainViewController = [[[SSDMainViewController alloc] initWithNibName:@"SSDMainViewController" bundle:nil] autorelease];
// Create an instance of a UINavigationController
// its stack contains only yourViewController
UINavigationController *navController = [[UINavigationController alloc]
initWithRootViewController:self.mainViewController];
navController.navigationBarHidden = YES;
// Place navigation controller's view in the window hierarchy
[[self window] setRootViewController:navController];
[self.window makeKeyAndVisible];
return YES;
【问题讨论】:
-
控制台日志中是否有任何错误?
-
如何检查?你说的是ipad吗?我没有检查过。在模拟器上没有错误。
-
在 Xcode 下的 View -> Debug Area -> Activate Console
-
哦,你的意思是在 Xcode 中.. 不,开发部分没有问题。我已经创建了 IPA 文件并将其上传到 testflight 并将其安装在我的 ipad 中,这就是问题发生的地方。我确信我错过了一些细节。
-
我对 testflight 不是很熟悉,但我建议您检查一下您的 testflight 日志。这篇 SO 帖子可能会有所帮助。 stackoverflow.com/questions/10317426/…
标签: iphone ios ipad xcode4 testflight