Java Coder
UIKeyboardBoundsUserInfoKey is deprecated
1 Answer(s)      4 years and 4 months ago
Posted in : MobileApplications

On running my application i am getting a warning as given below...

" UIKeyboardBoundsUserInfoKey is deprecated "

What is the cause of it?? and what should i use instead of UIKeyboardBoundsUserInfoKey. As i guess it's a older version.

Thanks!

Advertisement
View Answers

December 30, 2010 at 9:55 PM


Write UIKeyboardAnimationCurveUserInfoKey instead of UIKeyboardBoundsUserInfoKey

See the code below..

[[userInfo objectForKey:UIKeyboardAnimationCurveUserInfoKey] getValue:&animationCurve];









Related Tutorials/Questions & Answers:
UIKeyboardBoundsUserInfoKey is deprecated
UIKeyboardBoundsUserInfoKey is deprecated  On running my application i am getting a warning as given below... " UIKeyboardBoundsUserInfoKey is deprecated " What is the cause of it?? and what should i use instead
What is deprecated?
What is deprecated?  What is mean by deprecated element, method or class?   What is deprecated? Deprecated means condemned. A object... is showing a deprecated message that means it is either outdated or has been
Advertisements
MPMoviePlayerContentPreloadDidFinishNotification' is deprecated
MPMoviePlayerContentPreloadDidFinishNotification' is deprecated  Hi, While compiling compiler is giving following error: warning: 'MPMoviePlayerContentPreloadDidFinishNotification' is deprecated (declared at /Developer
UILineBreakModeWordWrap is deprecated
UILineBreakModeWordWrap is deprecated  I am getting the error UILineBreakModeWordWrap is deprecated in IOS 6.0. What is the latest code to be used for this? Thanks   Hi, If you use the following code
Java making a method deprecated
Java making a method deprecated  java making a method deprecated...; Declare "@Deprecated" before a method to create a method deprecated in your Java application. Though, it is not a correct way to use a deprecated class
HTTP_POST_VARS is deprecated
HTTP_POST_VARS is deprecated  HTTPPOSTVARS is deprecated. Which function to be used? Thanks   Hi, You should use: $id=$_GET["id"]; or $id=$_POST["id"]; thanks
Function split() is deprecated
Function split() is deprecated  Hi, The Function split() is deprecated in latest version of PHP 5.5.23? What is the solution? Thanks   Hi, Use the following function: array explode ( string $delimiter , string
Annotationconfiguration deprecated and its replacement
Annotationconfiguration deprecated and its replacement  Hi, In Hibernate 4 annotationconfiguration is deprecated. Can you tell me what will be its replacement? Thanks   Hi, You can use the following code in your
Is buildSessionFactory() deprecated in hibernate 4?
Is buildSessionFactory() deprecated in hibernate 4?  Hi, I am trying to develop an application in Hibernate 4. I am using the Hibernate 4.3.0.final build. Following code is given is the Hibernate documentation: SessionFactory
The type ServiceRegistryBuilder is deprecated
is deprecated What is the correct way of creating the SessionFactory in Hibernate
Function mysql_db_query() is deprecated
Function mysql_db_query() is deprecated  Hi, In latest version of PHP Function mysqldbquery() is deprecated. What could be the solution? Thanks
Function mysql_db_query() is deprecated
Function mysql_db_query() is deprecated  Hi, In latest version of PHP Function mysqldbquery() is deprecated. What could be the solution? Thanks
dismissmodalviewcontrolleranimated first deprecated in ios 6.0
dismissmodalviewcontrolleranimated first deprecated in ios 6.0  ...: dismissmodalviewcontrolleranimated first deprecated in ios 6.0 I used the following...   This error is coming as this code is deprecated in the IOS 6. You
struts2 filterdispatcher is deprecated please use the new filters
struts2 filterdispatcher is deprecated please use the new filters  Hi... on starup: struts2 filterdispatcher is deprecated please use the new filters... <<< is deprecated! Please use the new filters
Free VoIP Proxies
(soon to be deprecated by latest revisions). SIP is a open standard replacement from
HTML Books
with an asterisk (*) are obsolescent or deprecated. Optional attributes are given
java - JSP-Servlet
java  Third.java uses or overrides a deprecated api Recompile with -deprecation for details means what my program is compiled but runtime i had came this error why the above two lines shows
java error - Java Beginners
java error  G:\threading>javac threadmethods.java Note: threadmethods.java uses or overrides a deprecated API. Note: Recompile with -Xlint...; Hi Friend, You are using any deprecated method or something that has
iPhone Keyboard Hides TextField
* aValue = [info objectForKey:UIKeyboardBoundsUserInfoKey]; CGSize.... NSValue* aValue = [info objectForKey:UIKeyboardBoundsUserInfoKey
compilation error - Java Beginners
compilation error  Dear sir, When i compile some pgms i am getting below error.what may be the reason? "uses or overrides a deprecated API... generics or you are using deprecated methods. IF you want to check which lines
What's New In Hibernate 4.0 release
codes. Clean up of deprecated interfaces, methods, etc. Major changes made... classes and interfaces have been deprecated. Here I am giving some list of them. Methods that have been deprecated and removed from are as follows : Following
Java
Java  When i am compiling the Formdata it throws the error like 1) Formdata.java overrides or uses a deprecated API 2)Recompile with -Xlint :deprecation for details. I have the following dought also I am writing the fields which
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO] is depricated
animated:NO] Compiler is giving warning and saying this method is deprecated
java compilation error - Applet
java compilation error  hi friends the following is the awt front design program error, give me the replay E:\ramesh>javac product.java Note: product.java uses or overrides a deprecated API. Note
Spring 3.0 features
or above. Removed and Deprecated features in Spring 3.0 Spring MVC Controller hierarchy is not deprecated JUnit 3 testing Commons Attributes
How to use the latest buildSessionFactory in Hibernate 4?
been deprecated in Hibernate 4 and a new API is developed to create
Unable to create annotations in hibernate 4.0
is deprecated in hibernate 4.0 ,hence I used Configuration object as shown by you. Kindly
java compilation error - Java Beginners
be a deprecated method which shows that message.Even then,if you run the given code,you
Getting File path error - JSP-Servlet
(request.getRealPath) is deprecated. Second problem is that when i create a war
iphone TextView
:UIKeyboardBoundsUserInfoKey] CGRectValue];  ... = [[[aNotification userInfo] objectForKey:UIKeyboardBoundsUserInfoKey
What is difference among Project explorer, Package explorer and Navigator in Eclipse?
deprecated (as of 3.5) org.eclipse.ui.views.navigator.ResourceNavigator class