GithubHelp home page GithubHelp logo

devxoul / swipeback Goto Github PK

View Code? Open in Web Editor NEW
323.0 13.0 47.0 36 KB

Enable iOS 7+ swipe-to-back when custom back button is set.

License: MIT License

Objective-C 97.09% Ruby 2.91%
ios swipeback objective-c

swipeback's Introduction

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

platform :ios, '7.0'
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.

#import <SwipeBack/SwipeBack.h>

// ...

- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.swipeBackEnabled = NO;
}

License

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

swipeback's People

Contributors

devxoul avatar wolfcon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swipeback's Issues

Now working iPad with iPhone UI

I'm developing an app with iPhone only userinterface. When i run the app on an iPad with iOS 8, the app is presented like this: http://i.stack.imgur.com/HH9ad.png you know what i mean...
The SwipeBack action is not working in this case.

Otherwise the SwipeBack is working great on iPhone. Thanks ;)

Mechanism for callback when using Swipeback

Sorry if I missed something, but Is there any way I can get notified when Swipeback is used? Like a callback? Sometimes you have to perform some internal bookeeping when navigating through screens. This would be super handy.

Problems with UITableViewController

@devxoul,
This project is very simple and useful. Congrats!

I just noticed a small problem with the UITableViewController and the flag clearsSelectionOnViewWillAppear.

When I return slowly using the swipe, the cell is deselected.
When I return very fast, the cell is not deselected.

I took a look and tried to improve but could not find a solution. Anyone have any idea?

Back button highlight

Hi devxoul, thanks for the nice pod, it works correct.
But when I add a custom back button with an image, it doesn't get highlighted when tapping on it. Do you have this problem?
Problem exists in iOS 7 and 8.
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.