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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:40:45+00:00 2026-06-01T23:40:45+00:00

I’d like to develop for iOS5 and have a storyboard… I’ve just created UIView

  • 0

I’d like to develop for iOS5 and have a storyboard…
I’ve just created UIView with UIViewController on the storyboard.
I have added a lot of other UIButtons and labels and creates outlets to VC.

I would like to use this view with it’s viewcontroller 3 times on a single parent view.
How is it possible? I dont want to copy “a lot of other UIButtons and labels” …

Maybe i should create this view out of storyboard in separate XIB? How will i use XIB in storyboard?

UPDATE:

Thanx you, Juzzz – your solution works perfect:

  • 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-01T23:40:47+00:00Added an answer on June 1, 2026 at 11:40 pm

    You have to create 2 custom viewControllers (one for each view in your story board.
    example:

    @interface GraphCollectionViewController : UIViewController
    
    @interface GraphViewController : UIViewController
    

    To connect them you can use something called: UIViewController containment

    For your GraphCollectionViewController create 3 outlets for your UIViews. Then create 3 properties of GraphViewController’s (or an array, what you want) and initialize them in the view did load.

    @property (strong, nonatomic) IBOutlet UIView *topView;
    @property (strong, nonatomic) IBOutlet UIView *middleView;
    @property (strong, nonatomic) IBOutlet UIView *bottomView;
    
    @property (strong, nonatomic) GraphViewController *topGraphViewController;
    @property (strong, nonatomic) GraphViewController *middleGraphViewController;
    @property (strong, nonatomic) GraphViewController *bottomGraphViewController;
    
    ...
    
    //top graph
        self.topGraphViewController = [storyboard instantiateViewControllerWithIdentifier:@"GraphViewController"]; //init with view from storyboard
        self.topGraphViewController.view.frame = self.topView.bounds; //set frame the same
    
        [self.view addSubview:self.topGraphViewController.view];
        [self addChildViewController:self.topGraphViewController];
        [self.topGraphViewController didMoveToParentViewController:self];
    
    //middle graph
        self.middleGraphViewController = [storyboard instantiateViewControllerWithIdentifier:@"GraphViewController"]; //init with view from storyboard
        self.middleGraphViewController.view.frame = self.middleView.bounds; //set frame the same
    
        [self.view addSubview:self.middleGraphViewController.view];
        [self addChildViewController:self.middleGraphViewController];
        [self.middleGraphViewController didMoveToParentViewController:self];
    
    //bottom graph
        self.bottomGraphViewController = [storyboard instantiateViewControllerWithIdentifier:@"GraphViewController"]; //init with view from storyboard
        self.bottomGraphViewController.view.frame = self.bottomView.bounds; //set frame the same
    
        [self.view addSubview:self.bottomGraphViewController.view];
        [self addChildViewController:self.bottomGraphViewController];
        [self.bottomGraphViewController didMoveToParentViewController:self];
    

    I think you get the point. For more understanding this example .

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I have some data like this: 1 2 3 4 5 9 2 6
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
this is what i have right now Drawing an RSS feed into the php,
I would like to run a str_replace or preg_replace which looks for certain words

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.