Skip to content

lucoceano/CKPullDownController

Repository files navigation

CKPullDownController

CKPullDownController is a copy of CKPullDownController with few bug fix and improviments.

CKPullDownController 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.

Requirements

CKPullDownController requires iOS 5 or newer and uses ARC. It depends on the following Apple frameworks:

  • Foundation.framework
  • UIKit.framework
  • QuartzCore.framework

You will need LLVM 3.0 or later in order to build CKPullDownController.

Adding CKPullDownController to your project

Cocoapods

CocoaPods is the recommended way to add CKPullDownController to your project.

  1. Add a pod entry for CKPullDownController to your Podfile pod 'CKPullDownController', '~> 1.0'
  2. Install the pod(s) by running pod install.
  3. Include CKPullDownController wherever you need it with #import "CKPullDownController.h".

Source files

Alternatively you can directly add the CKPullDownController.h and CKPullDownController.m source files to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, than drag and drop CKPullDownController.h and CKPullDownController.m from the CKPullDownController directory 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.
  3. Include CKPullDownController wherever you need it with #import "CKPullDownController.h".

Static library

You can also add CKPullDownController as a static library to your project or workspace.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, than drag and drop CKPullDownController.xcodeproj onto your project or workspace (use the "Product Navigator view").
  3. Select your target and go to the Build phases tab. In the Link Binary With Libraries section select the add button. On the sheet find and add libCKPullDownController.a. You might also need to add CKPullDownController to the Target Dependencies list.
  4. Include CKPullDownController wherever you need it with #import <CKPullDownController/CKPullDownController.h>.

Usage

Initialize a CKPullDownController with a front and back view controller, than add the controller to your controller hierarchy.

UITableViewController *front = [[UITableViewController new];
UIViewController *back = [[UIViewController new];
CKPullDownController *pullDownController = [[CKPullDownController 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 CKPullDownController.h for API options.

License

This code is distributed under the terms and conditions of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published