I've used Auto resize in Interface Builder and It's Works fine. But I want to know how to do that in programmatically. Because i want to change AutoResizing mask in ViewDidload according iPhone Series.
The Code I've used is given below:
_moreOptionsView.autoresizingMask = (UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleBottomMargin);
I want to set Auto Resizing Mask to Width, Height, Right Margin & Top Margin through Programmatically.
You simple have to set the Autoresizing Mask of the view in question like so:
This is achieved using the Bitwise OR operator. It will set all bits true that are true in either of both values provided.