Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5020
Auto Layout + OverlayView
posted

Is there a specific way to make OverlayView work without resorting to setting the frame on the views?  Part of the problem is that there is no superview at the time the constraints are placed.  Sample code would be appreciated.

Parents
No Data
Reply
  • 4940
    Verified Answer
    Offline posted

    You would need to set constraints on IGOverlayView or set UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth for the autoresizingMask. A constraint or autoresizingMask needs set because the IGOverlayView's size and position is configurable.

Children
No Data