Skip navigation

iOS 6 "embed Segues" causes unresponsive view

1128 Views 2 Replies Latest reply: Jan 10, 2013 7:46 AM by zinc1oxide1 RSS
zinc1oxide1 Level 1 Level 1 (5 points)
Currently Being Moderated
Jan 8, 2013 1:40 PM

WWDC 2012 contains a session video called: "Adopting Storyboards in Your App" that demonstrates how to embed view Containers by utilizing the "Container View" offered within interface builder for storyboards.


Playing with this functionality I'm running into unpredictable behavior that cause some of the views to be unresponsive.  Here is a general summary of what I'm doing:


1.  Drag a "View Controller" object into my storyboard and embed into a navigation Controller and assign my user-defined class.

2.  Drag 2 "Container View" objects and embed each one within the "View Controller" created in step 1.


Screen Shot 2013-01-08 at 4.19.33 PM.png

3.  I insert a simple button on the left within the navigation toolbar when toggled,  moves the right embedded view to the right using the logic:


    UIView* rightView = [[self.childViewControllers lastObject] view];

    UIView* leftView = [self.childViewControllers[0] view];


    CGRect newPos = rightView.frame;

    newPos.origin.x += leftView.frame.size.width;


    main.frame = newPos;


4.  Sometimes, this causes my left view (UITableViewController) to not respond to touch events (within Simulator).  If I add code to move the view

      back to it's starting point, the left view responds again.


Other observations:  The placement of my views seems to affect the unresponsiveness.  For example, I overlaps 90% of the left view with the right one and

when moved, it was fine.  If I overlap 80% for example, the left view doesn't respond - the right one always seems to respond.  In general, I have noticed that sometimes the views that are stationary, don't respond - depending on the placement of the view that I'm moving.  In all my tests, the view that I move always responds.




iMac, Mac OS X (10.7.2), 27" Intel Core I5 - 4GB ram


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.