I have to set autoresizingMask programmatically for UIView.
UIView
I don\'t know how to implement this.
Swift 2.0:
view.autoresizingMask = [.FlexibleRightMargin, .FlexibleLeftMargin, .FlexibleBottomMargin]