ios - 适用于 iphone 和 ipad 的应用程序的启动图像

标签 ios uinavigationcontroller uiimageview uibutton uisplitviewcontroller

我知道这可能听起来应该是微不足道的,但我发现它很痛苦......

我正在 iPhone 和 iPad 上创建一个应用程序,并希望有一个启动图像。一旦用户单击图像,UI 将转换为 iPhone 上的 TableVC 和 iPad 上的 UISVC。

1)iPhone。我可以在 iPhone 上做到这一点的最简单方法是实际上有一个带有所需图像的按钮(在第一个 VC 上),然后创建一个 IBAction 可以执行以下操作:

    MyCustomTVC *myInstanceOfCustomTVC=[self.storyboard instantiateViewControllerWithIdentifier:@"TVC"];
    [self presentViewController:myInstanceOfCustomTVC animated:YES completion:nil];

现在我可以通过在导航 Controller 中嵌入 MyCustomTVC 并使用 segues 来保存所有这些工作,但是有没有办法为第一个 VC 隐藏 UINavigationItem?

2)iPad。这有点痛苦,因为我似乎做不到:
        UISplitViewController *kmbSvc=[self.storyboard instantiateViewControllerWithIdentifier:@"KMBSvc"];
    [self presentViewController:kmbSvc animated:YES completion:nil];

SVC 必须是根,所以应用程序如何呈现全屏启动图像,然后转到 SVC。

谢谢
九巴

最佳答案

也许我错过了您的观点,但是“启动镜像”是无法关闭的功能-? Apple 将其称为“启动图像”,它是在用户点击应用程序图标时显示的图像,甚至在应用程序加载之前。加载应用程序后,启动图像将替换为您的 Storyboard或 AppDelegate 首先显示的任何内容。不需要转场。

当您选择项目时,您会找到启动图像,然后是目标,然后是“摘要”,然后在“启动图像”部分中,您可以定义纵向和横向、标准和视网膜屏幕的启动图像。

问候,诺比

关于ios - 适用于 iphone 和 ipad 的应用程序的启动图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12065006/

相关文章:

ios - GADBannerViewDelegate 不会在 Swift 中触发 adViewDidReceiveAd

ios - "Fixed"奇怪的 "unrecognized selector sent to instance"崩溃发生在 iOS8 beta5

ios - MKMapView 不填充 View (iOS)

ios - 无法从 tableview 加载详细信息 ViewController

iphone - 我想在动画期间在图像上显示图像文件名

ios - Swift 中的委托(delegate)错误

ios - ViewController 的presentingViewController 设置错误?

ios - 为什么 UINavigationController 在容器 View 中有意外的大小?

ios - 模态视图不覆盖整个屏幕

objective-c - UITableViewCell 的 imageView 适合 40x40