title: Alternative to UIView autolayout methods which are to be deprecated
body: <p>According to the UIView.h header file, the methods below are to be deprecated.  </p>
  
  <p>What is the alternative way of working with autolayout in code?  </p>
  
  <p>I don't see how the methods recommended in the code comment replace their existing counterparts as they work on the actual constraint and not on the relation between the UIView and the constraint.</p>
  
  <pre><code>@interface UIView (UIConstraintBasedLayoutInstallingConstraints)
  
  - (NSArray *)constraints NS_AVAILABLE_IOS(6_0);
  
  - (void)addConstraint:(NSLayoutConstraint *)constraint NS_AVAILABLE_IOS(6_0); // This method will be deprecated in a future release and should be avoided.  Instead, set NSLayoutConstraint's active property to YES.
  - (void)addConstraints:(NSArray *)constraints NS_AVAILABLE_IOS(6_0); // This method will be deprecated in a future release and should be avoided.  Instead use +[NSLayoutConstraint activateConstraints:].
  - (void)removeConstraint:(NSLayoutConstraint *)constraint NS_AVAILABLE_IOS(6_0); // This method will be deprecated in a future release and should be avoided.  Instead set NSLayoutConstraint's active property to NO.
  - (void)removeConstraints:(NSArray *)constraints NS_AVAILABLE_IOS(6_0); // This method will be deprecated in a future release and should be avoided.  Instead use +[NSLayoutConstraint deactivateConstraints:].
  @end
  </code></pre>