码迷,mamicode.com
首页 > 其他好文 > 详细

- (void)addConstraints:(NSArray<__kindof NSLayoutConstraint *> *)constraints

时间:2017-03-30 22:50:34      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:void   table   discuss   ssi   instead   ddc   nbsp   ping   body   

Adds multiple constraints on the layout of the receiving view or its subviews.

 

All constraints must involve only views that are within scope of the receiving view. Specifically, any views involved must be either the receiving view itself, or a subview of the receiving view. Constraints that are added to a view are said to be held by that view. The coordinate system used when evaluating each constraint is the coordinate system of the view that holds the constraint.

When developing for iOS 8.0 or later, use the NSLayoutConstraint class’s activateConstraints: method instead of calling the addConstraints: method directly. The activateConstraints: method automatically adds the constraints to the correct views.

- (void)addConstraints:(NSArray<__kindof NSLayoutConstraint *> *)constraints

标签:void   table   discuss   ssi   instead   ddc   nbsp   ping   body   

原文地址:http://www.cnblogs.com/feng9exe/p/6648828.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!