dismissmodalviewcontrolleranimated first deprecated in ios 6.0

dismissmodalviewcontrolleranimated first deprecated in ios 6.0

In Xcode 6.1 while developing an application I am getting the following error:

dismissmodalviewcontrolleranimated first deprecated in ios 6.0

I used the following code in the AppDelegate file:

UINavigationController *navigationController = (id) self.window.rootViewController;
[[navigationController presentedViewController] dismissModalViewControllerAnimated:NO];

How to resolve this error?

Thanks

View Answers

December 28, 2014 at 12:27 AM

This error is coming as this code is deprecated in the IOS 6.

You should use the following new code:

UINavigationController *navigationController = (id) self.window.rootViewController;
[navigationController dismissViewControllerAnimated:NO
                                       completion:nil];

Check more tutorials at Rose India iPhone tutorials page.

Thanks









Related Tutorials/Questions & Answers:
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
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
Advertisements
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
org.hibernate.dialect.PostgreSQLDialect is deprecated
org.hibernate.dialect.PostgreSQLDialect is deprecated  HI, org.hibernate.dialect.PostgreSQLDialect is deprecated Which dialect to use? Thanks   Hi, You can use any of the following
org.hibernate.dialect.PostgreSQLDialect is deprecated
org.hibernate.dialect.PostgreSQLDialect is deprecated  HI, org.hibernate.dialect.PostgreSQLDialect is deprecated Which dialect to use? Thanks   Hi, You can use any of the following
MPMoviePlayerContentPreloadDidFinishNotification' is deprecated
MPMoviePlayerContentPreloadDidFinishNotification' is deprecated  Hi, While compiling compiler is giving following error: warning: 'MPMoviePlayerContentPreloadDidFinishNotification' is deprecated (declared at /Developer
org.hibernate.dialect.PostgreSQLDialect is deprecated
org.hibernate.dialect.PostgreSQLDialect is deprecated  HI, org.hibernate.dialect.PostgreSQLDialect is deprecated Which dialect to use? Thanks   Hi, You can use any of the following
Tomcat 6.0
Tomcat 6.0  Hi,this is harish i got an issue while running my project.I hope something wrong with my tomcat server .. ERROR:An internal error occurred during: "Publishing to Tomcat v6.0 Server at localhost
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
ModuleNotFoundError: No module named 'Deprecated'
ModuleNotFoundError: No module named 'Deprecated'  Hi, My Python... 'Deprecated' How to remove the ModuleNotFoundError: No module named 'Deprecated' error? Thanks   Hi, In your python environment you
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
float to np.floating is deprecated
float to np.floating is deprecated  Hi, I running one program and there is warning message "float to np.floating is deprecated". Error is: C...` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype
Version of cocoon>cocoon-deprecated dependency
List of Version of cocoon>cocoon-deprecated dependency
ModuleNotFoundError: No module named 'lookerapi-deprecated'
ModuleNotFoundError: No module named 'lookerapi-deprecated'  Hi...: No module named 'lookerapi-deprecated' How to remove the ModuleNotFoundError: No module named 'lookerapi-deprecated' error? Thanks   Hi
ModuleNotFoundError: No module named 'Python-Deprecated'
ModuleNotFoundError: No module named 'Python-Deprecated'  Hi, My... named 'Python-Deprecated' How to remove the ModuleNotFoundError: No module named 'Python-Deprecated' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'webmocker-deprecated'
ModuleNotFoundError: No module named 'webmocker-deprecated'  Hi...: No module named 'webmocker-deprecated' How to remove the ModuleNotFoundError: No module named 'webmocker-deprecated' error? Thanks   Hi
ModuleNotFoundError: No module named 'lookerapi-deprecated'
ModuleNotFoundError: No module named 'lookerapi-deprecated'  Hi...: No module named 'lookerapi-deprecated' How to remove the ModuleNotFoundError: No module named 'lookerapi-deprecated' error? Thanks   Hi
ModuleNotFoundError: No module named 'lookerapi-deprecated'
ModuleNotFoundError: No module named 'lookerapi-deprecated'  Hi...: No module named 'lookerapi-deprecated' How to remove the ModuleNotFoundError: No module named 'lookerapi-deprecated' error? Thanks   Hi
ModuleNotFoundError: No module named 'Python-Deprecated'
ModuleNotFoundError: No module named 'Python-Deprecated'  Hi, My... named 'Python-Deprecated' How to remove the ModuleNotFoundError: No module named 'Python-Deprecated' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'uno-deprecated'
ModuleNotFoundError: No module named 'uno-deprecated'  Hi, My... named 'uno-deprecated' How to remove the ModuleNotFoundError: No module named 'uno-deprecated' error? Thanks   Hi, In your python
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
problem regarding tomcat server 6.0
problem regarding tomcat server 6.0  Jul 27, 2012 10:39:19 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache... Foundation\Tomcat 6.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDO WS\system32;C:\WINDOWS;C
ModuleNotFoundError: No module named 'django-markup-deprecated'
ModuleNotFoundError: No module named 'django-markup-deprecated'  Hi...: No module named 'django-markup-deprecated' How to remove the ModuleNotFoundError: No module named 'django-markup-deprecated' error? Thanks  
ModuleNotFoundError: No module named 'django-deprecated-fbv'
ModuleNotFoundError: No module named 'django-deprecated-fbv'  Hi...: No module named 'django-deprecated-fbv' How to remove the ModuleNotFoundError: No module named 'django-deprecated-fbv' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-formwizard-deprecated'
ModuleNotFoundError: No module named 'django-formwizard-deprecated'  ...: No module named 'django-formwizard-deprecated' How to remove the ModuleNotFoundError: No module named 'django-formwizard-deprecated' error
ModuleNotFoundError: No module named 'django-markup-deprecated'
ModuleNotFoundError: No module named 'django-markup-deprecated'  Hi...: No module named 'django-markup-deprecated' How to remove the ModuleNotFoundError: No module named 'django-markup-deprecated' error? Thanks  
Steps For SSL Implementation/Enabling in Apache Tomcat 6.0
Steps For SSL Implementation/Enabling in Apache Tomcat 6.0   Hi , I am using the NetBeans 6.9 IDE Apache Tomcat 6.0 as Web server Front end jsp... / enable In Apache Tomcat 6.0
Steps For SSL Implementation/Enabling in Apache Tomcat 6.0
Steps For SSL Implementation/Enabling in Apache Tomcat 6.0   Hi , I am using the NetBeans 6.9 IDE Apache Tomcat 6.0 as Web server Front end jsp... / enable In Apache Tomcat 6.0
iOS View
iOS View   What is the Difference between View's bounds and frame in iOS?   Difference between View's bounds and frame in iOS The frame of a view is the rectangle, expressed as a location (x,y) and size (width,height
org.ow2.asm - asm version 6.0 Maven dependency. How to use asm version 6.0 in pom.xml?
org.ow2.asm  - Version 6.0 of asm Maven dependency? How to use  org.ow2.asm  - Version 6.0 of asm in pom.xml? How to use asm version 6.0... org.ow2.asm  - Version 6.0 of asm in project by the help of adding
Maven Dependency cocoon-deprecated >> 2.1.3
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-deprecated version2.1.3 in your project
Maven Dependency cocoon-deprecated >> 2.1.4
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-deprecated version2.1.4 in your project
Maven Dependency cocoon-deprecated >> 2.1.5.1
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-deprecated version2.1.5.1 in your project
Maven Dependency cocoon-deprecated >> 2.1.6
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-deprecated version2.1.6 in your project
Maven Dependency cocoon-deprecated >> 2.1.7
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-deprecated version2.1.7 in your project
Maven Dependency cocoon-deprecated >> 2.1.8
You should include the dependency code given in this page to add Maven Dependency of cocoon >> cocoon-deprecated version2.1.8 in your project
ios - r
ios - r  I'm a beginner programmer. (ios) And I'm not good at using English. Please understand me even if my expression is incorrect. My App include a NavigationvViewController. If HOME button is pressed while I'm
Command Button Validation in VB 6.0 - Design concepts & design patterns
Command Button Validation in VB 6.0  Hello Sir I want to validate at a once Click on Vb Command Button ,when User First Time Clicks on Print Button... can Validate in Vb 6.0 with MS Access 2003
com.graphql-java - graphql-java version 6.0 Maven dependency. How to use graphql-java version 6.0 in pom.xml?
com.graphql-java  - Version 6.0 of graphql-java Maven dependency? How to use  com.graphql-java  - Version 6.0 of graphql-java in pom.xml? How to use graphql-java version 6.0 in pom.xml? Learn to use this dependency
com.scireum - sirius-search version 6.0 Maven dependency. How to use sirius-search version 6.0 in pom.xml?
com.scireum  - Version 6.0 of sirius-search Maven dependency? How to use  com.scireum  - Version 6.0 of sirius-search in pom.xml? How to use sirius-search version 6.0 in pom.xml? Learn to use this dependency in your
com.nimbusds - oauth2-oidc-sdk version 6.0 Maven dependency. How to use oauth2-oidc-sdk version 6.0 in pom.xml?
com.nimbusds  - Version 6.0 of oauth2-oidc-sdk Maven dependency? How to use  com.nimbusds  - Version 6.0 of oauth2-oidc-sdk in pom.xml? How to use oauth2-oidc-sdk version 6.0 in pom.xml? Learn to use this dependency
ModuleNotFoundError: No module named 'ios'
ModuleNotFoundError: No module named 'ios'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'ios' How to remove the ModuleNotFoundError: No module named 'ios' error
Hibernate 5 query deprecated
Hibernate 5 query deprecated - What is latest method of running query in Hibernate 5? In Hibernate 5 query has been deprecated and developer should learn... and way to running query is deprecated. In this tutorial we will learn new
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

Ads