Note that there are some explanatory texts on larger screens.

plurals
  1. POUIScrollView with Autolayout in InterfaceBuilder
    primarykey
    data
    text
    <p>I'm trying to use a UIScrollView with autolayout. I simply cannot make it work the way it works with struts and springs. I want to use autolayout as that's the way ahead but it is so frustrating that Apple just put a tiny document and even that does not explain this in detail. I would like to state that I'm using IB and not making my view in code (that's just not an option these days).</p> <p>This is my view hierarchy:</p> <pre><code>-UIViewController -UIView (the base view) -UIScrollView [Contraints: topEdge-SuperView-0, leftEdge-SuperView-0, bottomEdge-SuperView (bottom layout guide sometimes)-0, rightEdge-SuperView-0, and sometimes CenterX-Superview-0] -UIView (the content View) [topEdge-SuperView-0, leftEdge-SuperView-0, bottomEdge-SuperView-0, rightEdge-SuperView-0, and also tried CenterX and centerY seperately] -The Actual Content [Constrained to the super view] </code></pre> <p>I think this is what Apple calls a pure Autolayout setup with UIScrollView and Autolayout according to their documentation. Please do not refer me to that document, I have read it like a number of times. Now I also go ahead and do the</p> <pre><code>translatesAutoresizingMaskIntoConstraints = NO </code></pre> <p>but the result is same, with or without the above option being true or false.</p> <p>The Result: Nothing Scrolls...!!</p> <p>Is there a method to this madness? I've tried to duplicate what rmayoff did in his video cast on Youtube (please do not refer me to that either), but nope... nothing..!!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload