Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (56 sloc) 1.5 KB
//
// SecondViewController.m
// Messagee
//
// Created by Ernesto Vargas on 2/10/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "PeopleViewController.h"
@implementation PeopleViewController
@synthesize usernameTextField;
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
#pragma mark - View lifecycle
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)viewDidUnload
{
[self setUsernameTextField:nil];
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
}
- (IBAction)addPeople:(id)sender {
NSLog(@"Add people Action");
}
- (void)textFieldDidBeginEditing:(UITextField *)textFieldView {
UITapGestureRecognizer *gestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideKeyboard:)];
[self.view addGestureRecognizer:gestureRecognizer];
}
- (void)hideKeyboard:(UITapGestureRecognizer *)sender {
[self.view removeGestureRecognizer:sender];
[usernameTextField resignFirstResponder];
}
@end
Something went wrong with that request. Please try again.