Getting this error in Swift 2.0.
Binary operator \'|\' cannot be applied to two UIViewAutoresizing operands
Here is the code:
This are the differences between Swift 1.2 and 2:
// swift 1.2 view.autoresizingMask = .FlexibleWidth | .FlexibleTopMargin // swift 2 view.autoresizingMask = [.FlexibleWidth, .FlexibleTopMargin]