Skip to content

peterpaulis/UIViewController--Container-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

UIViewController + Container

Category for inserting child view controller

###No more dispute what method commes before which, when adding / removing child UIViewController...

##Usage

For inserting

[self containerAddChildViewController:self.childViewController];

Or if you want to add the child view controller to a specific view inside the parent

[self containerAddChildViewController:self.childViewController toContainerView:self.containerView];

Fitting with autolayout

[self containerAddChildViewController:self.childViewController toContainerView:self.containerView useAutolayout:YES]; 

For removing

[self containerRemoveChildViewController:self.childViewController];

##Note The child view is fitted to the parent view, and when useAutolayout is YES, constraints are added, which ensure the correct resize behaviour

##License Apache License 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt

##Credits min:60 - Building perfect mobile apps, worldwide - https://min60.com

About

Category for inserting child view controller

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published