#SBP
SBP is a library that makes Objective C UI more maintainable by utilizing Storyboards and code together.
SBP currently allows you to do two things quickly:
- Produce static animations with autolayout in a maintainable way
- Switch from storyboard views ment for all screen sizes to specalized views for screen sizes and back again
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like AFNetworking in your projects. See the "Getting Started" guide for more information.
platform :ios, '5.0'
pod "SBP"
https://github.com/awaran/SBPExample
#import "UIViewController+SBP.h" //A category that adds on functionality to viewcontrollers
- (void)switchViewConst:(UIView*)firstView secondView:(UIView*)secondView durationInSeconds:(double)durationInSeconds
- Postfix the segue identifier strings with these
- @“_3_5” //for the 3.5 inch screens
- @“_4” //for the 4 inch screens
- @“_4_7” //for the 4.7 inch screens
- @“_5_5” //for the 5.5 inch screens
- Pick a single prefix segue identifier. If you choose @"hello_world" as your prefix, your segue identifiers should look like this
- @“hello_world_3_5”
- @“hello_world_4”
- @“hello_world_4_7”
- @“hello_world_5_5”
- Use this method to split the single Storyboard path into multiple screen paths
- (void)segueScreenSizeSplit:(NSString*)baseSegueName
- If you had chosen @"hello_world" as your prefix and you were in the viewcontroller that needed to split the path, the code should look something like this
[self segueScreenSizeSplit:@"hello_world"];
This is my first open source project and would like to colaborate with others. Please email me if you have any comments or questions at [email protected].