Binary operator '|' cannot be applied to two UIViewAutoresizing operands

后端 未结 6 1835
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-22 23:02

Getting this error in Swift 2.0.

Binary operator \'|\' cannot be applied to two UIViewAutoresizing operands

Here is the code:

6条回答
  •  清酒与你
    2020-12-22 23:52

    Try with xcode7-b6:

    view.autoresizingMask = UIViewAutoresizing.FlexibleWidth.union(UIViewAutoresizing.FlexibleHeight)
    

提交回复
热议问题