uistackview Questions
3
Solved
I have a UIScrollView with pagingEnabled. Added 5 UIStackView to subview of UIScrollView and also had one UISegmentedControl. I want to show currently selected segment and also want to disable hori...
Perihelion asked 1/8, 2018 at 9:52
3
Solved
I'm trying to add views(or buttons) to UIStackView dynamically.
At first, the UIStackView has no arranged views (vertically), and
after getting from some http response, several views(buttons) are...
Rolon asked 24/7, 2018 at 4:45
1
According to the Apple docs:
The order of the subviews array defines the Z-order of the subviews. If the views overlap, subviews with a lower index appear behind subviews with a higher index.
...
Screamer asked 8/8, 2016 at 13:39
1
I have two StackView, one of which is horizontal and another vertical.
For the horizontal StackView, I want the items to be aligned to the left and grow toward the right.
For the vertical StackVi...
Firstrate asked 29/6, 2018 at 15:12
5
I know that there's a question similar to this already, but his solution didn't solve my problem.
What I have is, I've used the storyboard to create a view controller, and then place a child stack...
Lesko asked 27/4, 2016 at 18:0
4
I would like to setup a UIViewStack so that it will center the two views inside, even though they have different widths. Here is an example:
Is it possible to achieve this type of configuration ...
Gautama asked 8/11, 2017 at 0:17
1
Is there a simple way to get the total content size of a UIStackView?
To give an example:
I programmatically create an array of UIViews...
var numberOfSubViews = 5
let subViews: [UIView] = {
...
Develop asked 19/3, 2017 at 4:56
2
Solved
I'm creating part of my application's UI with Swift and the problem I'm facing is I have a UIStackView with 3 sub views: 2 UILabels and an UIImageView. Here is my first code
let switchview = UISwi...
Kutuzov asked 24/5, 2018 at 14:14
1
Solved
I have a UIStackView which consist of 5 elements. I want the centered one bigger than others (like in below pic).
How I create UIStackView()
stackView.axis = UILayoutConstraintAxis.horizontal
...
Sacramental asked 21/5, 2018 at 13:23
1
Solved
I am using a UIStackView within a UIScrollView and I want to determine the height of the stack view so I can programmatically adjust the height of the scrollview to accomodate when subviews are hid...
Maugre asked 4/4, 2018 at 2:18
5
Solved
I have a fairly simple set up in my main storyboard:
A stack view which includes three views
The first view has a fixed height and contains a segment controller
The other two views have no restri...
Lepage asked 12/10, 2016 at 14:37
1
Solved
I'm starting with iOS app and creating a table view. In my table I have a cell like this.
Now I need to center the horizontal stackview with stars vertically and horizontally. This stackview ha...
Doeskin asked 20/3, 2018 at 15:59
3
Solved
I want to set stack view background to an image. For example, in Android, if I use 'Linear Layout' (equivalent to UIStackView), I can set a background image to the 'Linear Layout' irrespective of w...
Mussorgsky asked 27/1, 2016 at 6:43
3
Solved
In above screen, you can see I am using a UIStackView to fill radio buttons vertically. problem is my radio buttons not utilising the full width of UIStackView when I use stackV.alignment = .lead...
Garrotte asked 16/3, 2018 at 12:46
2
Solved
I am using Storyboard to create a layout which consists of a UITableView and a UIView at the bottom. I am using UIStackView and playing them vertically. I want the UITableView to take 80% of the he...
Zwickau asked 22/2, 2018 at 16:4
2
Solved
I'm experiencing problems with layout of arranged subviews in UIStackView and was wondering if someone could help me understand what's going on.
So I have UIStackView with some spacing (for exampl...
Romilly asked 16/9, 2017 at 11:11
3
Solved
I have a UIStackView, created in Interface Builder that contains two views. Now I'm trying to programatically change the order of these views (exchange their positions, so to speak).
Is there an ...
Tillford asked 22/1, 2018 at 7:26
2
Solved
Like the title says, I have searched around but had no luck. Is it possible to connect the stack view to the .swift file and then adjust the spacing programmatically? Thank you!
Nevermore asked 19/11, 2016 at 22:28
1
When I hide a UIView inside UIStackview, on iOS 11 it nicely removes the gap and brings the adjacent UIViews closer inside the UIStackView. However, on iOS 10 it will not move the adjacent views an...
Unoccupied asked 25/11, 2017 at 17:54
2
Solved
I am using UIStackView to define a list's layout.
I am trying to achieve the effect similar to this:
||Item1---spacing---Item2||
So, the two items are being pushed to the sides of the UIStackVi...
Branscum asked 9/1, 2018 at 13:54
1
Solved
I have a stack view that look like the figure below:
So I change the height of the image programmatically to make it fit the image that download from my server,if dont have image,the height cons...
Dinesen asked 6/1, 2018 at 15:5
3
Solved
I have two labels in a horizontal UIStackView. Label 1 is a large font (the alarm time), Label 2 is a small font (AM/PM indicator) and I want to align the bottoms of each label.
I have the align...
Haycock asked 3/1, 2018 at 5:4
1
Solved
I've recently started diving into iOS development with Swift again and am now looking into a custom UIControl. For layout and flexibility this custom view is built using a StackView.
What I want t...
Lohner asked 13/12, 2016 at 17:9
3
I want to add several multiline Labels to an UIStackView.
But I always end up my Labels being truncated. As seen in this Screenshot
But I like to have it more as shown here (my faked Screenshot)...
Eucaine asked 2/11, 2015 at 12:26
1
Solved
I frequently find that a UIStackView is perfect for a particular layout, except that I need some variable spacing between the arranged subviews. UIStackView uses its spacing property to arrange the...
Lethargy asked 26/3, 2016 at 18:11
© 2022 - 2024 — McMap. All rights reserved.