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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:42:59+00:00 2026-06-03T09:42:59+00:00

So I started playing with storyboards in XCode 4.3.2. I started with the Master-Detail

  • 0

So I started playing with storyboards in XCode 4.3.2. I started with the Master-Detail application (split view application for iPad). In the detail view (named DetailVC) I have a view where I displayed an array of custom views.

The custom views (named GridView) have a tap gesture recognizer which is supposed to handle the tap event on each custom view. Tapping a GridView pushes a view controller show some search results (named SearchResultsVC).

With GridView created in a separate nib file, and the DetailVC and SearchResultsVC reside in storyboard, how can I create a push segue with destination SearchResultsVC? I just created a segue between DetailVC and SearchResultsVC? Is there someway I can trigger this segue programatically from inside the GridView class when tap gesture is recognized????

  • 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-03T09:43:00+00:00Added an answer on June 3, 2026 at 9:43 am

    In the method where you handle the tap use:

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

    In your StoryBoard control drag from your DetailVC to your SearchResultVC and choose what type of segue you would like. Make sure to name your segue identifier the same as the one in the method above in attributes inspector.

    I’m gonna try and improve my answer I messed it up I think:

    1) In your DetailVC.h create an instance variable for your GridView like this

    IBOutlet UIView * gridView;
    

    also create a getter method and an IBAction for your grid view like this

    -(UIView *)gridView;
    -(IBAction)myGridGotPressed:(id)sender;
    

    2)Now in your DetailVC.m implement your methods like this

    -(UIView *)gridView{
    if(!gridView){
    [[NSBundle mainBundle] loadNibNamed:@"GridView" owner:self options:nil];
    }
    return gridView;
    }
    

    Also implement your IBAction like this

    -(IBAction)myGridGotPressed:(id)sender{
    [self performSegueWithIdentifier:@"yourSegueIdentifier" sender:self];
    }
    

    3) To make this work you need to change the filesOwner class of your GridView to DetailVC and then hook up the outlets and Actions as normal.

    I hope that helps.

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

Sidebar

Related Questions

I just started playing with the Master-Detail view template in Xcode 4.3 and I
I have just started playing with storyboards in XCode 4.3 and while designing an
Have started playing with Xcode 4.2, and created a single page application using storyboard
i have just started playing aorund with asp.net mvc and i want to view
I´ve just started playing around with Java and Hibernate and have gotten an application
I started playing with Haskell and I use Vim. I have autoindent on in
I've started playing with sockets and have started on a small game for testing
Recently I have started playing with jQuery, and have been following a couple of
I have just started playing with the ASP.Net MVC framework, and today I created
Have just started playing with ASP.NET MVC and have stumbled over the following situation.

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.