Note that there are some explanatory texts on larger screens.

plurals
  1. POUIViewController with a UIView with replaceable content
    primarykey
    data
    text
    <p>I have a <code>UIViewController</code> with a <code>UISegmentControl</code> with 3 buttons/segments.</p> <p>If I place a smaller <code>UIView</code> in the main view in the storyboard. Can I display content from 3 other <code>UIViewController</code> classes in this <code>UIView</code> depending on the <code>UISegmentControl</code> current segment? </p> <p>I have to ask because just read something about not displaying another <code>UIViewController</code> in a <code>UIViewController</code>. And this is the scene I'm working on:</p> <p><a href="http://www.flickr.com/photos/80427098@N07/7859459430/in/photostream" rel="nofollow">http://www.flickr.com/photos/80427098@N07/7859459430/in/photostream</a></p> <p>So if my picture scene is a bad way of doing it, my question is: </p> <p>Is there another way of displaying the content of <code>UIViewController</code> 1,2 and 3 according to the <code>UISegmentControl</code>?</p> <p>I am stuck so I need some quick guidelines on how to do this in an approved and working way, as the 3 scenes are very different to each other. </p> <p><strong>Brainstorming:</strong> </p> <ul> <li><p>Placing 3 <code>UIViews</code> in the <code>UIViewController</code> scene overlaying each other and make one of them "on top" according to the <code>UISegmentControl</code>.</p></li> <li><p>Make a long un-scrollable <code>UIScrollView</code> with the content from 1,2,3 and jump up and down in the <code>UIScrollView</code> to given coordinates according to the <code>UISegmentControl</code></p></li> </ul> <p>I don't want to get stuck again so please tell me the easiest way of this, I just need some hints..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload