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

  • SEARCH
  • Home
  • 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 7563565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:41:51+00:00 2026-05-30T13:41:51+00:00

I have the necessity to set some parameters before execute a segue, so I

  • 0

I have the necessity to set some parameters before execute a segue, so I must use CUSTOM SEGUE, right?
In this case, I would make the transition, from a screen to another, animated but I don’t have a NavigationController (and I don’t want to insert one!)

Is it possible to not use a NavigationController and change views with a custom segue?

In alternative, there is the possibility to set an action for a button and execute some rows of code befor performing a segue?
I found this solution :

  • (IBAction)showDetailView:(id)sender {

    //code

    …..

    [self performSegueWithIdentifier:@”ShowDetail” sender:sender];

}

but it need navigtion controller…

thank you to all and sorry for my bad englis!

  • 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-05-30T13:41:52+00:00Added an answer on May 30, 2026 at 1:41 pm

    When you create you segue in Storyboard, select “modal” instead of “push” (custom refers to a third type which I don’t think you need). Select the segue and use the attributes inspector to give it a name. In my code example I use the name “editTitleBlock”.

    To set properties on the destination view controller (which will be the modal view controller) put a prepareForSegueMethod in your first view controller like this:

    - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
    {
    if ([[segue identifier] isEqualToString:@"editTitleBlock"])  {
            [[segue destinationViewController] setTitleFieldString: @""];
            [[segue destinationViewController] setAltitudeFieldString:currentLocation.localizedAltitudeString];
            [[segue destinationViewController] setLocationFieldString:currentLocation.localizedCoordinateString];
            [[segue destinationViewController] setAuthorString:userName];
    
        if ([[segue identifier] isEqualToString:@"cancel"])  {
            // do nothing special
        }
    }
    

    to get back to the first view controller use:

    [self dismissModalViewController animated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some common set up code that I've factored out to a method
I have a data set that I am reporting on. However, some of the
I have a class that performs some operations on a set of data. The
I have some test classes that are making use of spring-batch, and hibernate. My
I have some daemons that use PID files to prevent parallel execution of my
I have a set of constants declared in Perl: use constant C1 => 111;
I have some custom components with overriden paintComponent(Graphics g) method. In some components drawString()
Sometimes I come across this problem where you have a set of functions that
I have a necessity to sort a given HTML table of the following structure,
I have been learning more and more javascript; it's a necessity at my job.

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.