iphone - UIKeyboardBoundsUserInfoKey Deprecated -



iphone - UIKeyboardBoundsUserInfoKey Deprecated -

i trying utilize code below xcode tells me uikeyboardboundsuserinfokey deprecated , wondering newer code instead:

nsvalue* avalue = [info objectforkey:uikeyboardboundsuserinfokey];

and below code in context:

-(void) keyboarddidhide: (nsnotification *)notif { nsdictionary* info = [notif userinfo]; nsvalue* avalue = [info objectforkey:uikeyboardboundsuserinfokey]; cgsize keyboardsize = [avalue cgrectvalue].size; cgrect viewframe = self.view.frame; viewframe.size.height += keyboardsize.height; scrollview.frame = viewframe; if (!keyboardvisible) { //nslog(@"keyboard hidden. ignoring notification."); return; } keyboardvisible = no; }

you can utilize uikeyboardframebeginuserinfokey or uikeyboardframeenduserinfokey key instead of uikeyboardboundsuserinfokey.

iphone cocoa-touch

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -