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
2
votes
0 answers

container view is cutting off elements that fit properly in storyboard

The view controller on the left has 2 containers. The top one embeds the view controller on the right. As you can see, the VC on the right has been automatically sized by Xcode to fit in the top container of the left-hand-side VC. So you would…
mkc842
  • 2,361
  • 2
  • 26
  • 38
2
votes
1 answer

Is it ok to keep multiple child view controllers associated with a parent UIViewController even when their views are not visible?

Scenario: I have a set of objects. I wish to display them using a UITableView when the device is in Portrait mode, and in UICollectionView when it is in landscape. To accomplish this, I want to use a UIViewController as a container, and give it…
PTTHomps
  • 1,477
  • 2
  • 22
  • 38
2
votes
1 answer

iOS change container view height dynamically

How can one change the height of the container view dynamically depending on the amount of images of its childView?
Daniel Ozean
  • 516
  • 1
  • 6
  • 16
2
votes
1 answer

Animating container view controllers

I have 2 container view controllers on my main screen, one which acts as a global toolbar at the top. This is great most of the time, but I need to animate this off screen, to give more room for the user to see lots of information on the screen. Is…
Alex
  • 3,031
  • 6
  • 34
  • 56
2
votes
0 answers

Xcode 4.5 Update Container View?

With the new 'Container View' for iOS in Storyboards of Xcode 4.5, how do I reload/update one? In my app, I have a container view which holds a UITableViewController. From my main view controller (the one with the container view) I need to updates…
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
1
vote
2 answers

Why does findViewById returning null when searching for the RecyclerView?

Why is val rv: RecyclerView = findViewById(R.id.material_list_rv) returning null? MainActivity class MainActivity : AppCompatActivity() { var adaptor: MaterialListAdaptor = MaterialListAdaptor() override fun onCreate(savedInstanceState:…
1
vote
1 answer

UIButton for navigation between six UIViewControllers in a Container View

I am very new to Swift, object-oriented programming, and interface building (I only have experience with some MATLAB programming), and I have been struggling for about a week to come up with a working interface in the IB. I have tried lots of…
1
vote
0 answers

how to use same container view in multiple storyboards?

I want to create an application which shows list of features when user taps on right navigation item. This 'Show list of features' screen will cover half of the iPhone screen with slide animation while hiding and showing it on screen. When user taps…
Manisha
  • 55
  • 6
1
vote
1 answer

Changing height of container view with height Constraint

I have one view firstViewController wich has one container view. The container view has the following constraints: The height is 0 because programatically I will change heightConstraint to new value. This is what I have in my containerView: The…
1
vote
1 answer

Swift Change UIContainerView height and width

I have two ContainerView which are placed above each other,for example ContainerA is front of ContainerB. When a Button tapped ContainerA width and height should change to a smaller size, then ContainerB will be shown. How can I change height and…
Ali Lashini
  • 427
  • 1
  • 5
  • 17
1
vote
0 answers

ContainerView embedded segue called programmatically and not in viewDidLoad

I have a relatively complex view controller and another not that complex(but not light either) view controller. I want the complex one to have a simple one as a child and I use container view and storyboard for that. However, when I navigate to my…
Olexiy Burov
  • 1,007
  • 3
  • 11
  • 22
1
vote
1 answer

Wrong height of Container View in UITableView header

I have set up a UITableViewController with a Container View as header view in Interface Builder. The header view has a height of 180px: Unfortunately, at run-time the height of the Container View is just 116px: If I replace the Container View in…
Tobi Kremer
  • 618
  • 6
  • 22
1
vote
2 answers

How to align the top of a view to half the parent view's height in Xcode 6.1

I am trying to align the top of the white subview to half the height of the container view in the viewcontroller. See attached image. In old versions of Xcode it was possible to CTRL-drag from the view to the container view and select "top alignment…
malena
  • 798
  • 11
  • 26
1
vote
1 answer

Using container view with storyboards and navigation

I am building an app using container views. I have been browsing the internet to find examples on how to use it properly but, unfortunately, I found very few examples and, so far, none of them use storyboards the way I intend to do. Here is a…
1
vote
0 answers

iOS how to swap cycle 3 view controllers through 2 containers with animation?

How I can sequentially recycle 3 view controllers using 2 containers with animation and blocks? Here's the pattern I'm trying to implement: 2 ^ 2 > 1 1 > 3 //reassign pointers and repeat ^ 3 I have 3 view controllers setup, ready for…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407