false / UIViewController--Container-

Category for inserting child view controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork : Added Fade in and fade out effects when the views are added.

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


Languages

Language:Objective-C 100.0%