MBPullDownController accepts two view controllers, which it presents one above the other. The front view controller is configured to accept a pull interaction which it utilizes to show or hide back view controller.
MBPullDownController requires iOS 5 or newer and uses ARC. It depends on the following Apple frameworks:
You will need LLVM 3.0 or later in order to build MBPullDownController.
Alternatively you can directly add the
MBPullDownController.m source files to your project.
MBPullDownControllerdirectory onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
You can also add MBPullDownController as a static library to your project or workspace.
MBPullDownController.xcodeprojonto your project or workspace (use the "Product Navigator view").
libMBPullDownController.a. You might also need to add
MBPullDownControllerto the Target Dependencies list.
Initialize a MBPullDownController with a front and back view controller, than add the controller to your controller hierarchy.
UITableViewController front = [[UITableViewController new]; UIViewController back = [[UIViewController new]; MBPullDownController *pullDownController = [[MBPullDownController alloc] initWithFrontController:front backController:back]; [self.navigationController pushViewController:pullDownController animated:NO];
The front controller's view must be a UIScrollView subclass. See the demo application for further details and check out MBPullDownController.h for API options.
This code is distributed under the terms and conditions of the MIT license.