objective-c - xcode8中出现错误'cannot call value of non-function type 'UIScreen''

查看:240
本文介绍了objective-c - xcode8中出现错误'cannot call value of non-function type 'UIScreen''的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

xcode8中的单页面应用程序中,出现错误'cannot call value of non-function type 'UIScreen''
ios新手求指点

解决方案

swift3.1

window = UIWindow(frame: UIScreen.main.bounds)
window?.backgroundColor = UIColor.white
window?.rootViewController = UIViewController()
window?.makeKeyAndVisible()

这篇关于objective-c - xcode8中出现错误'cannot call value of non-function type 'UIScreen''的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆