我试图获得屏幕宽度,以便在iPhone 6上显示不同的图像。但是,当我检查宽度或高度时,UIScreen.mainScreen().bounds总是为零。知道为什么吗?
发布于 2014-12-21 17:46:24
let height = UIScreen.mainScreen().bounds.height
let width = UIScreen.mainScreen().bounds.widthhttps://stackoverflow.com/questions/27591904
复制相似问题