最佳答案
我有麻烦修改我的 UIView 高度在启动。
我必须 UIView 和我想一个是屏幕尺寸 * 70和其他填补空白。
这就是我所知道的
@IBOutlet weak var questionFrame: UIView!
@IBOutlet weak var answerFrame: UIView!
let screenSize:CGRect = UIScreen.mainScreen().bounds
还有
questionFrame.frame.size.height = screenSize.height * 0.70
answerFrame.frame.size.height = screenSize.height * 0.30
它在运行时对应用程序没有影响。 我使用自动布局,但我只有边距限制..。
我做错了吗?