title: How do I turn off Auto Layout for a view from code?
body: <p>I haven't been using Auto Layout because I need to support iOS 5.  I'm now getting an NSInternalInconsistencyException when I push a controller:</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInternalInconsistencyException',
  reason: 'Auto Layout still required after executing -layoutSubviews.
  SGBExampleView's implementation of -layoutSubviews needs to call super.'
  </code></pre>
  
  <p>My implementation of layoutSubviews <em>does</em> call [super layoutSubviews], so that's unhelpful.  It seems that something has turned on Auto Layout for my view; I'd like to turn it off again.  However, everything I can find that says how to turn it off says to do so from IB.  I don't use IB.  How do I turn off Auto Layout for a view from code?</p>
  
  <p><em><strong>UPDATE:</em></strong></p>
  
  <p><em><strong>This question is not a duplicate as the other pertains specifically to a UITableViewCell subclass, and setting <code>translatesAutoresizingMaskIntoConstraints</code> to either YES or NO has no effect.</em></strong></p>