Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.1 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.1 KB

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