To run the example project, clone the repo, and run pod install
from the Example directory first.
DTContainerViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DTContainerViewController"
Inherit or addChildViewController and set the delegate.
implement DTContainerViewControllerDataSource
protocol method like
-(UIViewController *)viewControllerAtIndex:(NSUInteger)index{
return self.vcArr[index];
}
-(NSUInteger)numberOfChildViewController{
return 11;
}
implement DTContainerViewControllerDelegate
protocol method for observe the transition progress
The DTScrollTitleBar is bonus!! You're welcome!!
And the guide of making container viewcontroller,you just need to look at my blog
NicolasKim, [email protected]
DTContainerViewController is available under the MIT license. See the LICENSE file for more info.