Ios Xcode:swiftc失败,退出代码为1
我对此函数有问题:Ios Xcode:swiftc失败,退出代码为1,ios,swift2,xcode7,Ios,Swift2,Xcode7,我对此函数有问题: func isSmallDevice() -> Bool { if UIDevice().userInterfaceIdiom == .Phone { if UIScreen.mainScreen().nativeBounds.height <= 1136 { return true } } return false } func isSmallDevice()->Bool{ 如果U
func isSmallDevice() -> Bool {
if UIDevice().userInterfaceIdiom == .Phone {
if UIScreen.mainScreen().nativeBounds.height <= 1136 {
return true
}
}
return false
}
func isSmallDevice()->Bool{
如果UIDevice().userInterfaceIdiom==.Phone{
如果UIScreen.mainScreen()为.nativeBounds.height你在哪里调用它?同时尝试为>案例添加一个返回false我根本不调用它。尝试调用它,不会更改任何内容。你可以尝试深入清理你的项目,这可能会有所帮助-你可以参考此内容,我在你的代码中未发现任何问题同一问题多次退出我的xcode,甚至删除e导出数据,但没有帮助。