Jonas Budelmann 12 роки тому
батько
коміт
0da377da81

+ 5 - 0
Masonry/MASConstraintMaker.h

@@ -9,6 +9,11 @@
 #import "MASConstraint.h"
 #import "MASUtilities.h"
 
+/**
+ *  Provides factory methods for creating MASConstraints.
+ *  Constraints are collected until they are ready to be installed
+ *
+ */
 @interface MASConstraintMaker : NSObject
 
 /**

+ 1 - 0
Masonry/MASLayoutConstraint.h

@@ -7,6 +7,7 @@
 //
 
 #import "MASUtilities.h"
+
 /**
  *	When you are debugging or printing the constraints attached to a view this subclass
  *  makes it easier to identify which constraints have been created via Masonry

+ 14 - 0
Masonry/MASViewAttribute.h

@@ -8,11 +8,25 @@
 
 #import "MASUtilities.h"
 
+/**
+ *  An immutable tuple which stores the view and the related NSLayoutAttribute.
+ *  Describes part of either the left or right hand side of a constraint equation
+ */
 @interface MASViewAttribute : NSObject
 
+/**
+ *  The view which the reciever relates to
+ */
 @property (nonatomic, weak, readonly) MAS_VIEW *view;
+
+/**
+ *  The attribute which the reciever relates to
+ */
 @property (nonatomic, assign, readonly) NSLayoutAttribute layoutAttribute;
 
+/**
+ *  The designated initializer.
+ */
 - (id)initWithView:(MAS_VIEW *)view layoutAttribute:(NSLayoutAttribute)layoutAttribute;
 
 /**

+ 5 - 0
Masonry/MASViewConstraint.h

@@ -10,6 +10,11 @@
 #import "MASConstraint.h"
 #import "MASLayoutConstraint.h"
 
+/**
+ *  A single constraint.
+ *  Contains the attributes neccessary for creating a NSLayoutConstraint and adding it to the appropriate view
+ *  conforms to MASConstraint
+ */
 @interface MASViewConstraint : NSObject <MASConstraint, NSCopying>
 
 /**

+ 6 - 3
Masonry/View+MASAdditions.h

@@ -46,9 +46,12 @@
 - (instancetype)mas_closestCommonSuperview:(MAS_VIEW *)view;
 
 /**
- Creates a MASConstraintMaker with the callee view. any constraints defined are added to the view or the appropriate superview once the block has finished executing
-
- @param block scope within which you can build up the constraints which you wish to apply to the view.
+ *  Creates a MASConstraintMaker with the callee view.
+ *  Any constraints defined are added to the view or the appropriate superview once the block has finished executing
+ *
+ *  @param block scope within which you can build up the constraints which you wish to apply to the view.
+ *
+ *  @return Array of created MASConstraints
  */
 - (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))block;