Getting this error in Swift 2.0.
Binary operator \'|\' cannot be applied to two UIViewAutoresizing operands
Here is the code:
For Swift 3 Xcode 8 b1:
Swift 3
Xcode 8 b1
view.autoresizingMask = [.flexibleWidth, .flexibleHeight]