SubClass of UIScrollView, automatic arrange the subviews . Support autolayout and Storyboard.
Darg NMMAutolayoutScrollView.h
and NMMAutolayoutScrollView.m
to your project.
#pragma mark - Action
- (void)changeArrangeOrientation;
- (void)insertSubView:(UIView *)newView
atIndex:(NSInteger)index
alignType:(NMMSubviewAlignType)alignType
SizeType:(NMMSubViewSizeType)sizeType
priorPadding:(CGFloat)distance;
- (void)removeSubViewAtIndex:(NSInteger)index;
#pragma mark - Change SubView
- (void)changeDistance:(CGFloat)padding atIndex:(NSInteger)index;
- (void)changeAlign:(NMMSubviewAlignType)algin atIndex:(NSInteger)index;
- (void)changeSize:(NMMSubViewSizeType)sizeType atIndex:(NSInteger)index;
- (void)changeSubViewAlignTo:(NMMSubviewAlignType)alignType;
- (void)changeAllSubViewSize:(NMMSubViewSizeType)sizeType;