我在Xcode 7 beta中打开了我的项目,我收到了以下警告,我在Xcode 6中没有得到:
All interface orientations must be supported unless the app requires
full screen.
A launch storyboard or xib must be provided unless the app requires
full screen.
Run Code Online (Sandbox Code Playgroud)
该应用程序仅使用纵向方向设备,我设置了这种方式.我还有iphone和ipad接口的故事板.我无法确定为什么我会收到这些警告.这是一个Xcode 7 beta错误吗?
升级到iOS9后,我的应用程序的启动画面都是纯黑色.
有谁知道这是为什么?他们中的一些人正在使用.xib启动画面,有些人正在使用图像,但现在他们都只是黑色.是否必须使用Xcode 7构建应用程序才能在iOS9中使用启动画面?有没有人看到一些关于这是否是Apple的改变的文件?
谢谢!
更新:再次浏览应用程序似乎我的旧应用程序,只有一个启动图像,没有.xib仍然正确显示,所以问题似乎与启动屏幕.xib有关
UPDATE2: 作为萩在评论中指出,经过重新安装它再次开始工作,所以病因可能是发射图像是从只要安装该应用程序的厦门国际银行产生和存储的地方非常相同的二进制文件,然后升级到何时iOS9,由于某种原因(最有可能是非故意的Apple bug),生成的图像被清除,应用程序最终没有启动.这就是为什么老式的发布图像仍然安全且不受此影响的原因,因为它们已经被应用到应用程序中.
我会把它作为一个错误报告给Apple.
我正在学习如何在没有Interface Builder(即故事板,xib等)的情况下创建iOS应用程序.下面是我正在使用的基本应用程序委托类.问题是,显示时UIWindow不会耗尽设备的全屏(参见附件截图).这发生在我测试的所有设备和模拟器上.为什么不使用全屏?
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
lazy var window: UIWindow? = {
debugPrint("AppDelegate: Creating Window")
let screen: UIScreen = UIScreen.mainScreen()
let window: UIWindow = UIWindow.init(frame: screen.bounds)
window.backgroundColor = UIColor.whiteColor()
return window
}()
lazy var rootViewController: ShapesViewController = {
debugPrint("AppDelegate: Creating Root View Controller")
let rootViewController = ShapesViewController.init(nibName: nil, bundle: nil)
return rootViewController
}()
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool {
debugPrint("AppDelegate: applicationWillEnterForeground")
window?.rootViewController = rootViewController
window?.makeKeyAndVisible()
return true
}
}
Run Code Online (Sandbox Code Playgroud)