在 Swift 2.0 中出现此错误。
二元运算符'|' 不能应用于两个 UIViewAutoresizing 操作数
这是代码:
let view = UIView(frame: CGRect(x: 0, y: 0, width: 320, height: 568))
addSubview(view)
view.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight
知道可能是什么问题吗?