iphone Programming Glossary: movetextviewforkeyboard
UIKeyboardBoundsUserInfoKey is deprecated, what to use instead? http://stackoverflow.com/questions/2807339/uikeyboardboundsuserinfokey-is-deprecated-what-to-use-instead but still had issues. Here's what I came up with instead void keyboardWillShow NSNotification aNotification self moveTextViewForKeyboard aNotification up YES void keyboardWillHide NSNotification aNotification self moveTextViewForKeyboard aNotification up NO.. self moveTextViewForKeyboard aNotification up YES void keyboardWillHide NSNotification aNotification self moveTextViewForKeyboard aNotification up NO void moveTextViewForKeyboard NSNotification aNotification up BOOL up NSDictionary userInfo aNotification.. up YES void keyboardWillHide NSNotification aNotification self moveTextViewForKeyboard aNotification up NO void moveTextViewForKeyboard NSNotification aNotification up BOOL up NSDictionary userInfo aNotification userInfo Get animation info from userInfo NSTimeInterval..
How to resize UITextView on iOS when a keyboard appears? http://stackoverflow.com/questions/7169702/how-to-resize-uitextview-on-ios-when-a-keyboard-appears object nil void viewWillDisappear BOOL animated NSNotificationCenter defaultCenter removeObserver self void moveTextViewForKeyboard NSNotification aNotification up BOOL up NSDictionary userInfo aNotification userInfo NSTimeInterval animationDuration UIViewAnimationCurve.. newFrame UIView commitAnimations void keyboardWillShown NSNotification aNotification buttonDone.enabled true self moveTextViewForKeyboard aNotification up YES void keyboardWillHide NSNotification aNotification buttonDone.enabled false self moveTextViewForKeyboard..
|