Latest 0.0.2
Homepage https://github.com/orkenstein/AAStoryboardInstantiate
License MIT
Platforms ios 7.0, requires ARC
Authors

AAStoryboardInstantiate License MIT

Version
Platform

Usage

  1. Add #import <UIViewController+instantiate.h> anywhere you need. Your .pch file is the best place.
  2. Set Storyboard ID for View Controller you want to use. For example @"MyCoolHomeScreen".Storyboard ID
  3. Now you can simply instantiate View Controllers right from your storyboards using this code:
    - (void)someAction {
    MyCustomVC *customVC = [MyCustomVC instantiateWithIdentifier:@"MyCoolHomeScreen"];
    //  Do something
    [self presentViewController:customVC animated:YES completion:nil];
    }

    …OR set Storyboard ID the same as your class name. For example @"MyCustomVC". And use this method:

    - (void)someAction {
    MyCustomVC *customVC = [MyCustomVC instantiateFromStoryboard];
    //  Do something
    [self presentViewController:customVC animated:YES completion:nil];
    }

Requirements

Works with iOS 7+. ARC compatible.

Installation

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

pod "AAStoryboardInstantiate"

And run pod install or pod update

Author

orkenstein, [email protected]

License

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

Latest podspec

{
    "name": "AAStoryboardInstantiate",
    "version": "0.0.2",
    "summary": "The simpliest way to instantiate View Controller from Storyboard",
    "homepage": "https://github.com/orkenstein/AAStoryboardInstantiate",
    "license": "MIT",
    "authors": {
        "orkenstein": "[email protected]"
    },
    "source": {
        "git": "https://github.com/orkenstein/AAStoryboardInstantiate.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Classes/ios/UIViewController+instantiate.{h,m}",
    "ios": {
        "exclude_files": "Classes/osx"
    }
}

Pin It on Pinterest

Share This