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 6842313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:05:05+00:00 2026-05-27T00:05:05+00:00

Using Xcode 4.2 Storyboard, I’ve just created a segmented control in a view with

  • 0

Using Xcode 4.2 Storyboard, I’ve just created a segmented control in a view with two segments. I then ctrl-drag from each segment to a separate view to create two segues. It seems the developers forgot to distinguish between the segments though, since only one segue can be created; attempting to create a second to the ‘other’ control segment cause the first segue to be replaced by the second. Does anyone have a Storyboard workaround for this, or must I write the code manually?

Thank you.

  • 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-27T00:05:06+00:00Added an answer on May 27, 2026 at 12:05 am

    4.2 has been publicly release now.

    The problem can be solved with Storyboard using a custom segue. In the custom segue the segmented control can be tested to determine which controller to call. I have tested the following custom segue:

    #import "FlipTopPop.h"
    
    @interface UIViewController (Extension)
    
    @property (strong, nonatomic) IBOutlet UISegmentedControl *tabControl;
    
    @end
    
    
    @implementation FlipTopPop
    
    - (void) perform {
    
    UIViewController *src = (UIViewController *) self.sourceViewController;
    switch (src.tabControl.selectedSegmentIndex) {
        case 0:
            // go to settings
            src.tabControl.selectedSegmentIndex = 1; //not yet implemented - for now don't segway - reset to index 1 for now
            break;
        case 1:
            // this controller is called with index 1 - do nothing - should not get here
            break;
        case 2: {
            [UIView transitionWithView:src.navigationController.view duration:0.5
                               options:UIViewAnimationOptionTransitionFlipFromTop
                            animations:^{
                                [src.navigationController popViewControllerAnimated:NO];
                            }
                            completion:NULL];
            }
                break;
            default:
                break;
        }
    }
    
    @end
    

    Note that I have not yet implemented the transition in case 0 (segment 0) which will transition to another controller with code similar to what is implemented in case 2.

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

Sidebar

Related Questions

Using Xcode 4.x I created a SplitView project for iPad From RootViewController I'm trying
I have created a new Xcode project using Storyboards (tab view template). I added
Using XCode 4, I created a NEW TabBar Application using the default storyboard settings.
I created a project in xcode 4.2 using the feature of storyboard. I have
Have started playing with Xcode 4.2, and created a single page application using storyboard
From a tableview to another table view (using Xcode 4.2 and iOS 5). FirstPage.h
I created my app using StoryBoard. Then, I added objective-c class to have .h
I'm using xcode and I was wondering if there was a way to view
I'm just learning C and am using xCode for it (not sure if it
Im using Xcode and c++ I have copied the HoughCircles code from the OpenCV

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.