Skip to content

klaaspieter/KPAStoryboardConvenience

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Introduction

A UIStoryboard convenience category offering a standard way of naming components in UIStoryboards.

Installation

Add the following to your Podfile:

pod "KPAStoryboardConvenience"

Usage

Set the name of your default storyboard using setMainStoryboardName: Now access your storyboard anywhere in your app using mainStoryboard.

Instantiate your view controllers using:

[[UIStoryboard mainStoryboard] instantiateViewControllerForClass:[MyViewController class]];

You can also directly access the identifiers

  • + (NSString *)storyboardIdentifierForClass:(Class)theClass;
  • + (NSString *)segueIdentifierForClass:(Class)theClass;
  • + (NSString *)reuseIdentifierForClass:(Class)theClass;

All usage is documented in the Spec.

About

A UIStoryboard convenience category offering a standard way of naming and accessing components in storyboards

Resources

License

Stars

Watchers

Forks

Packages

No packages published