Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7801577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:59:33+00:00 2026-06-02T00:59:33+00:00

After adding a top navigation bar for customization of the camera overlay at here

  • 0

After adding a top navigation bar for customization of the camera overlay at here. Now I am trying to go back to the previous screen by adding an action to the back button. What I am doing is

-(IBAction)backButton:(id)sender {

NSLog(@"back button is clicked");

[self dismissModalViewControllerAnimated:YES]; 

}

However, the transition is no executed even though the console shows

back button is clicked

I also try

[self popToRootViewControllerAnimated:YES]

However,it does not work either
Have you encountered this issue before, please advice me about it. Thanks

PS : I dont wanna use the cancel button built-in controls (when showsZBarControls=YES )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:59:35+00:00Added an answer on June 2, 2026 at 12:59 am

    I assume the controller you are sending this message to is a modal view controller. You have to send

    dismissModalViewControllerAnimated:
    

    to the actual modal view controller. So it will look like this

    [self.someModalViewController dismissModalViewControllerAnimated:YES];
    

    Or you could add this code to your modal view controller

    -(IBAction)backButton:(id)sender {
    
      NSLog(@"back button is clicked");
    
     [self dismissModalViewControllerAnimated:YES]; 
    }
    

    This code implies that you have knowledge of your modal view controller in the previous view. You might look into adding these view controllers into a UINavigationController so all this would be taken care of.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create system configuration for my module.After adding system.xml I'm getting
After adding a simple acl to the top of default.vcl to restrict purge requests
Strange problem here... UPDATE After adding a lot more server side debugging, I found
Here is my CSS: #nav-primary ul li:nth-child(1) a:after { } Works everywhere now (used
I'm trying to show a UIProgressView on top of a table view after certain
After adding the /TSAWARE linker flag to one of my projects (Visual Studio 6),
After adding the key value pairs in NSMutableDictionary, when i retrive the key/values from
After adding these settings in web.config for increasing session timeout: <sessionState mode=InProc stateConnectionString=tcpip=127.0.0.1:42424 stateNetworkTimeout=240
After adding elements to page using something like this, $('#blah').append('<div id=bugsbunny></div>'); how can I
After adding <item>170,000</items> to string.xml . It becomes so slow in building workspace, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.