Top "Autoresizingmask" questions

Cocoa Touch bit-field mask for determining the behavior of UIView objects relative to their parent views when the parent view is resized.

Unable to simultaneously satisfy constraints - No constraints in place

I have gone through and removed every single user constraint yet I am still getting the following error ONLY after …

ios ipad autoresizingmask nslayoutconstraint
xcode/iOS: Autoresize to fill a view - explicit frame size is essential?

I would like a UITextView to fill its superView, which is a plain UIView inside a UIViewController instance. It seems …

xcode ios uiview autoresize autoresizingmask
Autoresizing masks programmatically vs Interface Builder / xib / nib

I was in an (probably false) assumption that enabling the right margin indicator in xib is equivalent to using UIViewAutoresizingFlexibleLeftMargin …

ios cocoa-touch uiview autoresizingmask
Set UIView's autoresizing mask programmatically?

I have to set autoresizingMask programmatically for UIView. I don't know how to implement this.

iphone objective-c ios uiview autoresizingmask
UIView autoresizingMask - Interface Builder to Code - Programmatically create struts and springs - Swift or Objective-C

I've laid out some subviews with Interface Builder, but I'd like to do it in code instead. I've read the …

ios objective-c swift uiview autoresizingmask
iOS Autolayout and UIToolbar/UIBarButtonItems

I have an iOS view with autolayout enabled and have a UIToolbar with a UISearchBar and UISegmentControl contained with the …

ios uibarbuttonitem uitoolbar autolayout autoresizingmask
What is the purpose of UIView's autoresizingMask?

After reading about UIView's autoresizingMask on SO and developer.apple.com I'm still unclear what the purpose is. What's a …

ios uiview autoresizingmask
iOS 7 Custom UINavigationBar TitleView moves when Pushing or Popping new View Controller

I am using a custom title view for a UINavigationBar with the following code: // Set a label to the nav …

ios iphone objective-c uinavigationbar autoresizingmask
How to programmatically create UIView with this setup?

I'd like to create a UIView programmatically with the exact equivalent of this setup in IB (see screenshot). Whatever I …

uiview autoresizingmask
Proper AutoresizingMask

I have a view that appears at the center of its parent view portrait mode, what autoresizemask should I use …

ios uiview uiinterfaceorientation autoresizingmask