Skip to content

Instantly share code, notes, and snippets.

@catehstn
Last active August 29, 2015 14:08
Show Gist options
  • Save catehstn/7f78a88b5986c866583d to your computer and use it in GitHub Desktop.
Save catehstn/7f78a88b5986c866583d to your computer and use it in GitHub Desktop.
#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