Wednesday, May 14, 2014

iphone changing view size on keyboard appearance

NSDictionary* info = [notification userInfo];
       CGSize keyboardSize = [[info objectForKey:UIKeyboardFrameEndUserInfoKeyCGRectValue].size;
        self.textNoteView.frame = CGRectMake(self.textNoteView.frame.origin.xself.textNoteView.frame.origin.yself.textNoteView.frame.size.widthself.textNoteView.frame.size.height - keyboardSize.height);

No comments:

Post a Comment