Questions tagged [uicontainerview]

There is no public UIContainerView class in Cocoa Touch, but there is a pattern that uses a UIViewController as a container for one or more child view controllers. This pattern is also in the object library of Interface Builder in Xcode with the name Container View.

You can drag a Container View for the object library into a view in a Storyboard scene. This will create a new view in the scene and creates a new view controller object which is connected with the container view by a segue. The view of this new view controller is displayed in the connected view.

The class UIViewController supports nesting of child view controllers. The documentation contains also a section about Implementing a Container View Controller programmatically.

648 questions
-3
votes
1 answer

Hide a view when a button inside of it is clicked

I have a viewController, inside of it I added a "container view" which I want to hide or change its size when a button (that is inside of the container view) is clicked, how can I do that?
-4
votes
3 answers

Share Data Between View Controller and Container View

I have a view controller that has a segue to a second view controller, and I passed some data to the second one in prepare for segue. The problem is: the second view controller has a container view which I need to share that data with. I tried using…
nouf
  • 273
  • 4
  • 14
-5
votes
1 answer

How to make your API run only when the containers view is shown?

I am using a 5 container view inside one view controller. All container view are of same size (same width and same Height). Different API are performed on different container view. The approach which I am implementing is showing and hiding the…
1 2 3
43
44