• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to use multiple segue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use multiple segue


  • Subject: How to use multiple segue
  • From: Vavelin Kevin <email@hidden>
  • Date: Fri, 20 Jul 2012 16:21:21 +0200

Hi there,

I have some segue on my storyboard view, and i want to show the right view related to an index into a "cover flow". I don't know how to use segue 'cause it's the first time that i used more than one in a element.

I connected all my segue to my UIView and I want that when I tap on my button,  I load my view with the index of my carousel. I thought this function will be good but… :

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    if ([[segue identifier] isEqualToString:@"formSegue"]) {
        [segue destinationViewController];
    }
}

-(IBAction)ouvrirApplication:(id)sender
{
    if([carousel indexOfItemView:carousel] == 0)
    {
        [self performSegueWithIdentifier:@"formSegue" sender:self];
    }
}

I don't know how can i choose multiple segue :/ it's not very clear for me. Do you have an idea ?

Thanks for your answer.

Cheers,
Vavelin Kévin
Twitter | Blog | LinkedIn 
Entrepreneur
Developer OS X / iOS

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to use multiple segue
      • From: Jens Alfke <email@hidden>
  • Prev by Date: How to launch a target into principal app
  • Next by Date: Re: How to launch a target into principal app
  • Previous by thread: Re: How to launch a target into principal app
  • Next by thread: Re: How to use multiple segue
  • Index(es):
    • Date
    • Thread