uistackview Questions

2

Solved

My design requires that a button is centered between two other objects. One of the objects is in the vertical center of the view (green). The other object is some distance from the bottom edge (gre...
Drinkable asked 17/9, 2014 at 18:17

1

I have a custom UITableViewCell that has the following elements: UIImageView UILabel UILabel I want the UIImageView on the left, and the 2 UILabel objects stacked one on the other on the right ...
Ammamaria asked 27/3, 2016 at 23:45

1

Solved

I have a UIScrollView that contains a UIStackView, and I add views to it and if the UIStackView needs more space than the screen has then it will scroll thanks to the UIScrollView. I am able to se...
Deeprooted asked 5/10, 2017 at 19:20

3

Solved

If I set: stackView.distributon = .fillProportionally Then on iOS 11 I get a very weird animation when loading a view that contains this stack view (all subviews - not just stack view - are fly...
Hecklau asked 25/8, 2017 at 12:12

2

Solved

... because I have an image view that's centered horizontally to its parent, and it's appearing right aligned.
Stigmatism asked 7/9, 2017 at 20:11

3

Solved

So I've be studying Swift/iOS development recently and I'm having a little trouble with sizing buttons within a stack view, I have the following layout: There are two TextFields and a button in a ...
Baker asked 21/5, 2017 at 10:51

1

I am trying to give shadow to a UIStackView. My stackview is in a prototypecell having some labels and buttons. Firstly, I have made a reference of stackview with name UIViewBank in a class that is...
Owsley asked 30/8, 2017 at 13:9

2

I have a UITableViewCell that has an embedded UIStackView in it. Everything works and looks fine on the phone and iPad. However, I get a lot of weird errors in the StoryBoard and I don't know if I ...
Brittbritta asked 2/12, 2016 at 13:53

4

Solved

I have a simple UIImageView with 50x50 size. If I had a UIView of size 100x100 and I wanted to center the image inside of it, all I have to do is set these But how do I do the same with a UIStack...
Pedigree asked 31/7, 2017 at 3:6

2

Solved

If I try to animate the hiding all the subviews of a stackview, I can see them moving towards the top left corner. On showing, they are animated coming from top left to their proper space. If I hid...
Languorous asked 17/10, 2016 at 14:0

1

I have one stack view that contains with 4 buttons. And each button I also add subview to that. The subview of that 4 buttons, I try to program to add constraint into it. Some constraint such as .T...
Mure asked 30/6, 2017 at 17:4

2

Solved

I'd like to ask you if it's possible to set height in percentage of each container placed in vertical stack view? I want to have 3 containers in stack view. First should take 40% of screen size, se...
Acroter asked 2/12, 2015 at 17:47

1

Solved

I have vertical UIStackView which has two horizontal UIStackViews, if bottom UIStackView has larger width than UIStackView on the top then UIStackView on the top will be stretched to the width of t...
Scherle asked 21/6, 2017 at 16:33

2

Solved

I add views to a TZStackView (which should be basically the same as a UIStackView, but with a fallback for older versions) like this: stackView.addArrangedSubview(subview) the stackView and the ...
Fader asked 16/2, 2016 at 17:39

2

Solved

I am using a Stack view to create a kind of table UI, I have 6 views in a StackView 0,2,4 are visible and 1,3,5 are hidden. When tapping one of the visible views I wish to "open" one of the views t...
Flowerpot asked 16/11, 2016 at 18:21

1

I am trying to get elements inside a UIStackView to position themselves equally from the center. This is the desired effect I would like: As you can see, I would like the two text fields to b...
Harquebus asked 27/5, 2017 at 10:31

2

Solved

How do I programmatically align the text of a sequence of UILabels within a horizontal UIStackView so that all text is at the bottom of the views? Below is an image of what I have and what I want...
Downcome asked 2/5, 2017 at 12:22

1

I want to create a UICollectionView with a custom header in Code. Therefore i created a Subclass of UICollectionViewCell to describe my custom header. I want to display five labels in my head...
Darees asked 24/4, 2017 at 19:39

2

I have seen several solutions to make UIStackView scroll with UIScrollView but they all rely Autolayout and IB. Is there a way to do it programmatically? I have seen this example: https://gist.gi...
Ryswick asked 17/6, 2016 at 19:53

0

I have 2 views in a horizontal UIStackView. What I'm trying to achieve is for the stack view to stay in horizontal mode if possible, but if this isn't possible then change to a vertical mode. Demon...
Ciera asked 12/4, 2017 at 1:12

3

Solved

How can I have an UIStackView with the same space as padding and gap between views? How can I achieve this layout: When this one doesn't suit me: Neither does this: I just need the around...
Rooster asked 22/10, 2015 at 21:29

2

Solved

How to properly animate datePicker appearance/disappearance in stackView? Currently I tried like this: UIView.animateWithDuration(0.3, animations: { self.datePickerView.hidden = !self.datePickerV...
Diagnostician asked 5/7, 2016 at 14:51

1

Solved

I have created a UIStackView in IB which has the distribution set to Fill Equally. I am looking to get the frame for each subView but the following code always returns (0, 0, 0, 0). class ViewCont...
Ashcraft asked 19/3, 2017 at 18:4

2

Solved

I have a UIStackView contained inside of a UICollectionViewCell to represent a post on a social network (similar style to Instagram's cells). The UIStackView contains an author header (custom UIVie...
Tarragona asked 27/10, 2015 at 13:43

1

Solved

In order to hide a subview in UIStackView is it better to set the isHidden to true or to use removeArrangedSubview and remove the subview from the parent Stackview instead ? I am using a Stackview...
Embus asked 16/1, 2017 at 23:48

© 2022 - 2024 — McMap. All rights reserved.