Latest 0.0.1
Homepage https://github.com/nishimao/MAOFlipViewController
License MIT
Platforms ios 7.0, requires ARC
Authors

Usage
This is the OSS that provide interacition transition like FlipBoard.

Demo Project
Please open the file below to run the demo project.

MAOFlipViewController/Demo/Demo.xcodeproj

=====================
Usage
Podfile is below.

platform :ios, '7.0'
pod 'MAOFlipViewController', :git => "https://github.com/nishimao/MAOFlipViewController.git"

Please import "MAOFlipViewController.h" only.

#import "MAOFlipViewController.h"

Please addSubview "MAOFlipViewController’s instance"
Example below.

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.flipViewController = [[MAOFlipViewController alloc]init];
    self.flipViewController.delegate = self;
    [self addChildViewController:self.flipViewController];
    self.flipViewController.view.frame = self.view.frame;
    [self.view addSubview:self.flipViewController.view];
    [self.flipViewController didMoveToParentViewController:self];
}

Please implements delegate method.
Example below.


#pragma mark - MAOFlipViewControllerDelegate

- (UIViewController*)flipViewController:(MAOFlipViewController *)flipViewController contentIndex:(NSUInteger)contentIndex
{
    DetailViewController *c = [self.storyboard instantiateViewControllerWithIdentifier:@"DetailViewController"];
    c.requestNumberText = [NSString stringWithFormat:@"%d", contentIndex];
    return c;
}

- (NSUInteger)numberOfFlipViewControllerContents
{
    return 5;
}

Latest podspec

{
    "name": "MAOFlipViewController",
    "version": "0.0.1",
    "summary": "This is the OSS that provide interacition transition like FlipBoard.",
    "description": "This is very easy interaction trasitioion library. This is the OSS that provide interacition transition like FlipBoard.",
    "homepage": "https://github.com/nishimao/MAOFlipViewController",
    "license": "MIT",
    "authors": {
        "Mao Nishi": "[email protected]"
    },
    "social_media_url": "http://twitter.com/mao_nishi",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/nishimao/MAOFlipViewController.git",
        "tag": "0.0.1"
    },
    "source_files": "MAOFlipViewController/**/*.{h,m}",
    "exclude_files": "Classes/Exclude",
    "requires_arc": true
}

Pin It on Pinterest

Share This