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
-1
votes
1 answer

Is it possible to show a UIViewcontroller in a UITabviewcontroller that doesn't exist in tabs?

I got a really weird situation; I have a tabviewcontroller that contains 5 tabs, and that tabviewcontroller is in a container that is in a uiviewcontroller which holds top and bottom bars. There are some extra pages and their linked buttons should…
peynir
  • 58
  • 1
  • 11
-1
votes
1 answer

work with two container view using segmented controller

M learn Container View using objective c. Here, try to display two container one by one using segmented Controller. Two container use container name is containerViewA, containerViewB. I am running the app that time only containerViewB is…
Gangani Roshan
  • 583
  • 1
  • 8
  • 25
-1
votes
1 answer

how to manage view controllers in a sequential pattern - swift

I'm trying to implement sth like images below. there are some views that should be displayed in a sequential order and a bar above them shows the flow of tasks. as it is shown, first profile view should be displayed. when the user clicks on Go to…
Hos Ap
  • 1,168
  • 2
  • 11
  • 24
-1
votes
2 answers

Access properties of container view's superview

What I want to achieve: when the user presses a button in the view controller in the container view I want it to be able to access and change a property of the super view of which the container view is a subview in. Is this possible? I have seen a…
Stefan DeClerck
  • 1,162
  • 2
  • 12
  • 22
-1
votes
2 answers

How to change background color of UIViewController

I have a MainViewController and it has a container view. with few margin from edges. Now i navigate to another view ViewController1. Suppose there i get an error for some region in ViewController1. then i want to change my MainViewController's…
Museer Ahamad Ansari
  • 5,414
  • 3
  • 39
  • 45
-1
votes
2 answers

loading different container view from container view

I have 3(cv1, cv2, cv3) container views place on same position on mainViewContoller. All 3 having different viewController classes (.swift) Button is placed on cv2(secondViewController), on that button click I want to change containerView from cv2…
RockStar
  • 1,304
  • 2
  • 13
  • 35
-1
votes
1 answer

How to load the view controller inside container using button?

This is the code i have been using while i click the button there is no action occurs in my view controller. - (IBAction)controlleraction:(id)sender { ChildViewController *child=[[ChildViewController alloc]init]; rootviewController…
-1
votes
1 answer

Access container's parent view from custom class

I have a custom class myCustomClass, that is a subclass of UIView. I will be adding a UITextField as a subview. Then, in the storyboard, I set a UIView's class to the custom class. In the storyboard, I have a viewController with a containerView. The…
Jessica
  • 9,379
  • 14
  • 65
  • 136
-1
votes
1 answer

Ios swift container view and segmented control switch views

I have segmented control, and container view, now how can i make 2 views and segmented control needs to switch that 2 views in container view? I can't find any tutorial for swift or obj c.
Mirza Delic
  • 4,119
  • 12
  • 55
  • 86
-1
votes
1 answer

IOS Tab Bar with container

I have a MAIN VC with buttons, then call Item 1 and Item 2 of Tab Bar Controller. In Item 1 I have a container; inside a container a TABLE VIEW, then another Tab Bar Controller. Image below. The question: how I can show the first view of…
-1
votes
1 answer

UITextFieldDelegate in containing View Controller

I have implemented a container view in my UIViewController then placed a UITableViewController within it. This table contains static rows that contain a couple UITextFields. Now I have would like to detect when the user presses the return key on the…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
-2
votes
1 answer

Accessing parent view buttons in container view controller

I have a collection view controller inside of a container view and buttons on the parent view - I need my container view to be able to access the button outlets from my parent view so that I can detect when buttons are clicked in order modify my…
bloop
  • 9
  • 4
-2
votes
1 answer

Swift: Pass parameters for a uicontainerview

I have a container bearing a view (only once) he has a gallery of images with scrollView, I need this gallery is dynamic. How can I pass data to this container / view once it is loaded? Already tried by protocol, and passing by below.…
leedream
  • 559
  • 1
  • 6
  • 21
-2
votes
2 answers

Adding multiple views to a container view

I am looking at adding numerous TableViews to an existing UI View Controller. I have seen…
Dan
  • 2,304
  • 6
  • 42
  • 69
-2
votes
1 answer

How can I access childViewControllers in table cell

I used containerView in static table cell on StoryBoard. self.TableViewCell.childViewControllers[0]; self.ContentView.childViewControllers[0]; self.childViewControllers[0]; These had nothing. I want not to use custom UIViewCell. How can I access in…
1 2 3
43
44