Last active
March 21, 2016 14:15
-
-
Save bimawa/5963666 to your computer and use it in GitHub Desktop.
UIWindow have global notifications for keyboard in iOS devices. How it works i show in this.Read UIWindow class description for study all events. (ReactiveCocoa update)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[[[[NSNotificationCenter defaultCenter] rac_addObserverForName:UIKeyboardWillChangeFrameNotification | |
object:nil] takeUntil:[self rac_willDeallocSignal]] deliverOnMainThread] subscribeNext:^(NSNotification *notification) { | |
CGRect keyboardFrame = [[notification userInfo][UIKeyboardFrameEndUserInfoKey] CGRectValue]; | |
CGRect frameOfScreen = [UIScreen mainScreen].bounds; | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment