This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIViewController { | |
/** | |
Convenience function to add a child view controller to self. | |
This will send the proper notifications to the child view controller | |
and add the child view controller's view to `self.view`. | |
- parameter child: The view controller that should be contained in `self`. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
@interface ViewController () | |
@property (nonatomic, weak) IBOutlet UIView *viewToAnimate; | |
@property (nonatomic, assign) BOOL containerIsOpen; | |
@end | |
@implementation ViewController |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "CustomTabBarViewController.h" | |
@interface CustomTabBarViewController () | |
@property (nonatomic, assign) BOOL buttonsExpanded; | |
@end | |
@implementation CustomTabBarViewController | |
-(void) addCenterButtonWithImage:(UIImage*)buttonImage highlightImage:(UIImage*)highlightImage | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(keyboardWillShow:) | |
name:UIKeyboardWillShowNotification | |
object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(keyboardWillHide:) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
@interface ViewController () | |
@property (nonatomic, weak) IBOutlet UIView *toolbarContainer; | |
@property (nonatomic, weak) IBOutlet UIView *touchZone; | |
@property (nonatomic, weak) IBOutlet UIView *buttonContainer; | |
@property (nonatomic, weak) IBOutlet UIButton *collapseButton; | |
@property (nonatomic, assign) BOOL toolbarIsOpen; | |
@property (nonatomic, assign) BOOL toolbarIsAnimating; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
@interface ViewController () | |
@property (nonatomic, weak) IBOutlet UIImageView *starImageView; | |
@end | |
@implementation ViewController | |
- (void)viewDidLoad |