Giter Club home page Giter Club logo

ibcellflipsegue's Introduction

IBCellFlipSegue

IBCellFlipSegue is a simple custom segue meant to replicate the behavior of the buttons in the new version of the Expedia Hotels & Flights app. Currently, the segue is in it's very early stages of development, and it was created as a simple personal project which I have decided to share.

Requirements

The use of IBCellFlipSegue requires:

  • Xcode 4.4+
  • ARC Support
  • iOS 5.0+

Installation

To setup IBCellFlipSegue in your project, simply follow these steps:

  1. Clone the IBCellFlipSegue repository, either as a submodule or into a folder on your computer.
  2. Add IBCellFlipSegue folder into your project.
  3. In your project's settings, select the project's target and under Build Phases add QuartzCode.framework to Link Binary With Libraries.
  4. Import IBCellFlipSegue where you need it in your project by adding #import IBCellFlipSegue.h to the header file.

How To Use

To use the IBCellFlipSegue, follow these simple steps:

  1. Inside your app's storyboard file, create a custom segue between the views you want to transition.

  2. Using the Attributes Inspector, the the Segue Class field to IBCellFlipSegue.

  3. Optional: In case the source view controller (the view controller you are transitioning from) has more than one segue, give the segue an identifier.

  4. In the source view controller's implementation file (.m) implement the prepareForSegue:sender: method of the view controller.

  5. Convert the segue to an IBCellFlipSegue like so:

    IBCellFlipSegue *cellFlipSegue = (IBCellFlipSegue *)segue;
    
  6. Set the segues selectedCell property to the button/cell that should be flipped.

  7. Optional: Set the direction/type of the flip by settings the segue's flipAxis property to one of the following: FlipAxisHorizontal, FlipAxisVertical, FlipAxisDiagonal.

  8. Make beautiful transitions!

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.