Skip to content

nomemo/NMMScrollview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NMMScrollview

SubClass of UIScrollView, automatic arrange the subviews . Support autolayout and Storyboard.

Install

Darg NMMAutolayoutScrollView.h and NMMAutolayoutScrollView.m to your project.

Easy use.

#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;

Demo

123

123

333

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published