Latest 1.0.3
Homepage https://github.com/mogmet/MOGOpenBookSegue
License MIT
Platforms ios 7.0, requires ARC
Frameworks QuartzCore
Authors

MOGOpenBookSegue is custom segue like iBooks open animation.

sample

Requirements

iOS7.0 or later

Usage

  1. To run the example project, clone the repo, and run pod install from the Example directory first.
  2. Import header to your ViewController.

    #import <MOGOpenBookSegue/MOGOpenBookSegue.h>
    
    or
    
    #import "MOGOpenBookSegue.h"
  3. Change to custom segue on Storyboard.
    sample
  4. Add code on your ViewController like this.
    -(void)prepareForSegue:(MOGOpenBookSegue *)segue sender:(id)sender {
        [segue setupBookView:self.coverImageButton.imageView.image frame:self.coverImageButton.frame];
        [super prepareForSegue:segue sender:sender];
    }
  • If you want to change duration time, add this code. Default is 1.0f.
    [segue setDurationTime:3.0f];
  • If you want to do something after animation, you can add this code.
    [segue setCompletionBlock:^(BOOL transitionCompleted) {
        NSLog(@"open!");
    } closeCompletion:^(BOOL transitionCompleted) {
        NSLog(@"close!");
    }];

Installation

MOGOpenBookSegue is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MOGOpenBookSegue"

Author

mogmet

License

MOGOpenBookSegue is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MOGOpenBookSegue",
    "version": "1.0.3",
    "summary": "MOGOpenBookSegue is custom segue like iBooks open animation.",
    "description": "                       # MOGOpenBookSeguen                       * This is custom segue like iBooks open animation.n",
    "homepage": "https://github.com/mogmet/MOGOpenBookSegue",
    "license": "MIT",
    "authors": {
        "mogmet": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mogmet/MOGOpenBookSegue.git",
        "tag": "1.0.3"
    },
    "social_media_url": "https://twitter.com/mogmet",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resource_bundles": {
        "MOGOpenBookSegue": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": "QuartzCore"
}

Pin It on Pinterest

Share This