Skip to content

Instantly share code, notes, and snippets.

View anasamoudi's full-sized avatar

Anas AlAmoudi anasamoudi

View GitHub Profile
@henrik
henrik / example.m
Created June 27, 2010 11:48
Locating the keyboard (UIKeyboard) on iOS 4, to e.g. add a custom button.
- (void)someSetupMethod {
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillShow:)
name:UIKeyboardWillShowNotification object:nil];
}
- (void)someTeardownMethod {
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];
}