Questions tagged [container-view]

Containers combine views to help present a seamless interface. Container views can be used to simplify transition animations between two image views.

Related links

99 questions
50
votes
5 answers

xcode storyboard Container View - How do I access the viewcontroller

I'm trying to use storyboard and get things working properly. I've added a a Container View to one of my existing views. When I try to add a reference to this in my view controller .h file (ctrl-drag), I get a IBOutlet UIView *containerView. How do…
Justin808
  • 20,859
  • 46
  • 160
  • 265
38
votes
1 answer

How to use a 'Container View' in iOS?

I have noticed the UI Component in XCode: Container View. Based on the description provided I would like to make use of it to display a reusable component of my app in several different screens. I have been looking around online to try and find a…
user843337
31
votes
3 answers

Add a child view controller's view to a subview of the parent view controller

I want to add a tableViewController as a child view controller of a containerViewController (shown below). According to Apple's View Controller Programming Guide I can achieve this by the following lines of code inside my containerViewController: …
16
votes
5 answers

Change Container View Content with Tabs in iOS

I'm trying to make a form that spans three tabs. You can see in the screenshot below where the tabs will be. When the user taps a tab, the Container View should update and show a particular view controller I have. Tab 1 = View Controller 1 Tab 2 =…
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
14
votes
1 answer

Getting reference to view controller of the container view

I have a viewController which contains a ContainerView(which is setting up a ViewController). I am setting up a segue and in prepareforsegue method I want to get a reference to a viewController which is embedded in the container View. How do I do…
Roadblock
  • 2,041
  • 2
  • 24
  • 38
10
votes
2 answers

Child View Controller rotation methods not being called

Summary I am attempting to add a child view controller to a parent view controller, and have the parent view controller inform the child view controller of rotation events. However, the rotation messages are not being forwarded to the child view…
Sam
  • 1,052
  • 11
  • 17
8
votes
2 answers

Refresh Container View on Button Press

I have a UIViewController with a container view which holds a UITableView. Within the UITableView I have a NSFetchController with NSPredicate that uses variables from the intial UIViewcontroller (I hope your still with me). For one instance that the…
memyselfandmyiphone
  • 1,080
  • 4
  • 21
  • 43
8
votes
3 answers

How to create a container/child viewcontroller relationship in interface builder

To create from code a parent/child relationship between 2 view controllers basically it's just matter of doing something like: [self addChildViewController:childViewController]; [self.view addSubview:childViewController.view]; where self is the…
5
votes
2 answers

xcode 7 swift how to make container view transparent

I have 5 tabs in my application. I need to add a floating button for quick action on all my tabs. I've managed to add the floating button at the bottom, just above the tab bar using a container view. So the container is positioned at bottom right…
Stacy J
  • 2,721
  • 15
  • 58
  • 92
5
votes
1 answer

Autolayout: How to compress a complex popover

If you like to try the source code (which you are very welcome to do), have a look at my Bitbucket repository. I have a popover dialogue that shows a list of settings. These settings a listed inside multiple UITableViews. The UITableViews shall not…
5
votes
1 answer

Get width and height of container from view

Forgive me if this is a duplicate. I thought for sure this would be an obvious question. I have a container in a storyboard, which is of class ModelViewController (the whole view controller). From ModelViewController I need to get the width and…
Orange Peel
  • 484
  • 5
  • 20
5
votes
0 answers

ContainerView on UICollectionViewCell

I created a Container View in my iOS App Storyboard. I want to page horizontally in one of the cells in the UICollectionView (like a FragmentPager of Android). However, an error occurs if you put in the Container View in a…
5
votes
2 answers

(auto layout) container view resizes but subviews don't

I have some problems using auto layouts with container Views (in both cases: with the view containment pattern used from ios5 and a simple container view). I have a sort of custom Master Detail controller, I can resize the left container after some…
jerrygdm
  • 450
  • 1
  • 7
  • 22
4
votes
2 answers

How to handle iOS 11 large title animation when using multiple container views?

I am making an app at the moment where 1 screen has a segmented control with 3 segments. Initially I had 1 table view and when you change segment I would simply change the data source/cell etc and reload the table. While this works great there is…
crashoverride777
  • 10,581
  • 2
  • 32
  • 56
4
votes
2 answers

iOS Scroll View, Container View - auto layout issue

I'm using storyboards & auto layout. I have a Container View in a UIScrollView. The Container View allows me to layout a long (320, 1000) view in the storyboard. I set the content size of the UIScrollView to (320,1000). I pinned the following…
Scott
  • 652
  • 1
  • 7
  • 15
1
2 3 4 5 6 7