项目作者: devxoul

项目描述 :
Enable iOS 7+ swipe-to-back when custom back button is set.
高级语言: Objective-C
项目地址: git://github.com/devxoul/SwipeBack.git
创建时间: 2014-08-26T06:05:43Z
项目社区:https://github.com/devxoul/SwipeBack

开源协议:MIT License

下载


SwipeBack

CocoaPods

Enable iOS7 swipe-to-back when custom back button is set.

SwipeBack plays with iOS native gesture recognizers, so you can also use it to disable swipe-to-back feature.

Getting Started

Use CocoaPods.

Podfile

  1. platform :ios, '7.0'
  2. pod 'SwipeBack', '~> 1.1'

Usage

Basic Usage

Just install SwipeBack with CocoaPods. Your application now supports swipe-to-back feature.

Enabling and Disabling

You can set swipeBackEnabled for a specific UINavigationController. Default value is YES.

  1. #import <SwipeBack/SwipeBack.h>
  2. // ...
  3. - (void)viewWillAppear:(BOOL)animated
  4. {
  5. self.navigationController.swipeBackEnabled = NO;
  6. }

License

SwipeBack is under MIT license. See LICENSE for more info.