Last active
August 29, 2015 14:08
-
-
Save catehstn/7f78a88b5986c866583d to your computer and use it in GitHub Desktop.
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 "HomeViewController.h" | |
#import "HomeView.h" | |
@implementation HomeViewController | |
@synthesize homeView = homeView_; | |
-(void)viewWillAppear:(BOOL)animated { | |
[[self navigationController] setNavigationBarHidden:YES animated:YES]; | |
} | |
- (void)loadView { | |
homeView_ = [HomeView new]; | |
[self setView:homeView_]; | |
} | |
- (void)showImagePickerWithType:(UIImagePickerControllerSourceType)type | |
delegate:(id <UINavigationControllerDelegate, UIImagePickerControllerDelegate>)delegate { | |
UIImagePickerController *imagePicker = [UIImagePickerController new]; | |
[imagePicker setSourceType:type]; | |
[imagePicker setDelegate:delegate]; | |
[[self navigationController] presentViewController:imagePicker animated:YES completion:nil]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment