uinavigationcontroller go back

uinavigationcontroller go back

Hi,

How to go back to the previous view on the navigation controller view.

Write code for uinavigationcontroller go back.

Thanks

View Answers

December 24, 2010 at 1:13 PM

Hi,

Use the following code:

   [self.navigationController popToRootViewControllerAnimated:YES];

Thanks


January 2, 2011 at 11:09 PM

Hi,

With the help of following code you can display the root view of Navigation controller:

[self.navigationController popToRootViewControllerAnimated:YES];

But in some cases you have to go one view back in the your application. For this you can use following code to go back one view:

[[self navigationController] popViewControllerAnimated:YES];

Thanks









Related Tutorials/Questions & Answers:
uinavigationcontroller go back
uinavigationcontroller go back  Hi, How to go back to the previous view on the navigation controller view. Write code for uinavigationcontroller go back. Thanks
UINavigationController Navigating to back
UINavigationController Navigating to back  How to navigate to previous screen or simply go back or simulate the back button programmatically in iOS? Thanks   Hi, You can use the following code
Advertisements
uinavigationcontroller back button action
uinavigationcontroller back button action  Hi, Tell me how to back to my root or main view in my uinavigationcontroller based application. I.... Give me any code for uinavigationcontroller back button action method. Thanks
uinavigationcontroller back button not showing/ missing
uinavigationcontroller back button not showing/ missing  Hi, In my... but ... somehow in the next view uinavigationcontroller back button not showing...... as the uinavigationbar back button use the title of the previous view
go back to previous view iphone sdk
go back to previous view iphone sdk  How to go back to previous view iphone sdk?    - (IBAction)backView:(id)sender { [self.navigationController popViewControllerAnimated:YES
click on back button go to the login page
click on back button go to the login page  now when i click on back button the page show that page on where i came from and it shows the session expired but i want when i click a back buttob then it should show a login page
should not go back to index.jsp when press on the link logout
should not go back to index.jsp when press on the link logout  Hello i m having a problem in my servlet page.Actully what i m trying to do is that i... Logout.java.but now the problem is this ,when i press the back arrow on the browser
should not go back to index.jsp when press on the link logout
should not go back to index.jsp when press on the link logout  Hello i m having a problem in my servlet page.Actully what i m trying to do is that i... Logout.java.but now the problem is this ,when i press the back arrow on the browser
should not go back to index.jsp when press on the link logout
should not go back to index.jsp when press on the link logout  Hello i m having a problem in my servlet page.Actully what i m trying to do is that i... Logout.java.but now the problem is this ,when i press the back arrow on the browser
UIWebView in UINavigationController
UIWebView in UINavigationController  I am wondering why application gets slow while push and pop. I have used the UINavigationController in my application. [self.navigationController popViewControllerAnimated:YES
uinavigationcontroller add multiple buttons
uinavigationcontroller add multiple buttons  How to add multiple buttons to the UINavigationController
UINavigationController hide navigation bar
UINavigationController hide navigation bar  HI, How to hide the navigation bar of UINavigationController? I have to hide navigation bar of UINavigationController on the click of a button. Thanks   Hi, Use following
UINavigationController how to set title
UINavigationController how to set title  I want to set the tile of the UINavigationController when a view is displayed once new view is pushed. Thanks   Hi, You should use the following code
Push and Pop UINavigationController
Push and Pop UINavigationController  push and pop UINavigationController example   Pushing and Popping Stack Items...];   UINavigationController *mNav = [[UINavigationController alloc
uinavigationcontroller background image
uinavigationcontroller background image  I wants to add a background image to uinavigationcontroller.   Use setBackgroundImage to to add a background image to uinavigationcontroller
uinavigationcontroller add right button
uinavigationcontroller add right button  Hi, How to add the right button programatically to a UINavigation Controller? Thanks   Hi, You can use the following code: - (void)viewDidLoad { [super viewDidLoad
Back button
Back button  how to redirect to a home page when a back button is pressed in jsp instead of displaying the previous page
Back end
Back end  How to install ODBC driver in windows7
Browser Back/Forward - Struts
Browser Back/Forward  Hi, Greetings to all. I have developed a web application using Struts 2. Now, i want to enable browser back/forward/bookmarking in that. Can anyone post me some links/tutorial/examples or how to go
There and Back Again
There and Back Again       The weblog of Joshua Eichorn, AJAX, PHP and Open Source Read full DescriptionADS_TO_REPLACE_1
disable back button - Java Beginners
displayed but..when i click back button i go back to the register page which should...disable back button  I wanted the code for disabling back button in my application(The scenario is like when im in my register user page and try
ModuleNotFoundError: No module named 'go'
ModuleNotFoundError: No module named 'go'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'go' How to remove the ModuleNotFoundError: No module named 'go' error
ModuleNotFoundError: No module named 'in-go'
ModuleNotFoundError: No module named 'in-go'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'in-go' How to remove the ModuleNotFoundError: No module named 'in-go'
JavaScript Navigate Back
On clicking the link 'Go Back', you will move back to the main page i.e. page.html.... JavaScript Navigate Back...; In this section, you will learn how to navigate back to the main page using
ModuleNotFoundError: No module named 'back'
ModuleNotFoundError: No module named 'back'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'back' How to remove the ModuleNotFoundError: No module named 'back' error
ModuleNotFoundError: No module named 'back'
ModuleNotFoundError: No module named 'back'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'back' How to remove the ModuleNotFoundError: No module named 'back' error
navigation item back button
navigation item back button  I wants to add a navigationBar on the top of my UIWebView also a navigation item "back button". can anyone please explain how the back and refresh button works
Browser's back button
Browser's back button  how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page
Enable Browser's back button
Enable Browser's back button  how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page
Browser's back button
Browser's back button  how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page
PushViewController back button
PushViewController back button  How can i hide the back button... it always show back button.   In your ViewDidLoad method just hide the navigation back button as given in the code. navigationItem.hidesBackButton = YES
disabling back button
disabling back button  hi, i am trying to make an application and i stuck at the point after login.. when i could logged in successfully then if i press back button i again reach to the back page ie. authentication page so if any
Going Back to Basics of Social Media Marketing
in their promotional strategy plan, they need to go back to the basics to learn the first...Social Media Marketing: Going Back to Basics Social Media Marketing should be a part of the business plan and every successful business has one
image store and get it back
image store and get it back  store the image in the oracle using blob and get it back hi i am facing problem in the following code . this code can store the image in table but at time of reading it back it never shows me
browser back button
browser back button   hi...i created one page in JSF.that page had three form division.in first form one add button is there.if i click that button move to second form,then i click browser back button ,it moves on another page.so
back button in jquery
back button in jquery  Creating a back button in JQuery   <script src="/javascript/jquery.min.js"></script> <script type="text/javascript">     $(document).bind("mobileinit", function(){     Â
Flower Shop Ordering To Go
Flower Shop Ordering To Go   Create a flower shop application which deals in flower objects and use those flower objects in a bouquet which can then be sold. The flower object has a flower name, color, quantity. Adding
disabling the browser's back button
disabling the browser's back button  I have following requirement, After submitting the form, user should not navigate to the previous page. I have tried with onbeforeunload(), but it is not working properly. Please help me
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
how to disable browser back button
how to disable browser back button  Am doing a web application in that how to disable browser back button using java script
ModuleNotFoundError: No module named 'flask-go'
ModuleNotFoundError: No module named 'flask-go'  Hi, My Python... 'flask-go' How to remove the ModuleNotFoundError: No module named 'flask-go... to install padas library. You can install flask-go python with following
ModuleNotFoundError: No module named 'go_api'
ModuleNotFoundError: No module named 'go_api'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'go_api' How to remove the ModuleNotFoundError: No module named 'go_api'
ModuleNotFoundError: No module named 'go-auth'
ModuleNotFoundError: No module named 'go-auth'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'go-auth' How to remove the ModuleNotFoundError: No module named 'go-auth
ModuleNotFoundError: No module named 'go-defer'
ModuleNotFoundError: No module named 'go-defer'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'go-defer' How to remove the ModuleNotFoundError: No module named 'go-defer
ModuleNotFoundError: No module named 'go-defer'
ModuleNotFoundError: No module named 'go-defer'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'go-defer' How to remove the ModuleNotFoundError: No module named 'go-defer
ModuleNotFoundError: No module named 'go-defer'
ModuleNotFoundError: No module named 'go-defer'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'go-defer' How to remove the ModuleNotFoundError: No module named 'go-defer
ModuleNotFoundError: No module named 'go_http'
ModuleNotFoundError: No module named 'go_http'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'go_http' How to remove the ModuleNotFoundError: No module named 'go_http
ModuleNotFoundError: No module named 'go_http'
ModuleNotFoundError: No module named 'go_http'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'go_http' How to remove the ModuleNotFoundError: No module named 'go_http
ModuleNotFoundError: No module named 'go_http'
ModuleNotFoundError: No module named 'go_http'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'go_http' How to remove the ModuleNotFoundError: No module named 'go_http

Ads