gleue / TGLStackedViewController

A stacked view layout with gesture-based reordering using a UICollectionView -- inspired by Passbook and Reminders apps.
MIT License
1.21k stars 117 forks source link

Child Controller #8

Closed eggie5 closed 9 years ago

eggie5 commented 10 years ago

I want to use this controller as a child of a container controller. I already have a view controller to manage a view I want to show this TGLStackedView control on. However, I can't seem to get it to work as a child controller. Any idea how to do this?

gleue commented 10 years ago

The TGLStackedViewController should behave like any other VC regarding containment. So I guess you'd just have to call the required methods in your parent VC and add the TGLStackedViewController's view (i.e. the collection view) to your parent's view hierarchy.

For reference see: https://developer.apple.com/library/ios/documentation/uikit/reference/UIViewController_Class/index.html#//apple_ref/doc/uid/TP40006926-CH3-SW86