Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#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];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment