Return to Snippet

Revision: 42716
at March 9, 2011 12:04 by zamza726


Initial Code
- (void)viewDidLoad {
    [super viewDidLoad];
	
	[[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(keyboardWillShow:)
                                                 name:UIKeyboardWillShowNotification
                                               object:nil];
}

- (void)viewDidDisappear:(BOOL)animated 
{
    [super viewDidDisappear:animated];
    [[NSNotificationCenter defaultCenter] removeObserver:self
                                                    name:UIKeyboardWillShowNotification
                                                  object:nil];
}

- (void)keyboardWillShow:(NSNotification *)aNotification 
{
    //...........
}

Initial URL


Initial Description
Notification related with KeyboardWillShow

Initial Title
Set Notification

Initial Tags


Initial Language
Objective C