uistackview Questions
2
Solved
I have two labels embedded inside a horizontal UIStackView. One of the labels might grow too large in size, therefore, one of them is truncated.
Or, their sizes are being split in some proportion ...
Interested asked 2/5, 2018 at 22:9
2
I currently have a Stack View setup with a bunch of different objects inside of it, and I'm trying to add a view to it.
The view will have a dynamic number of labels added inside of it programmati...
Pearle asked 20/8, 2018 at 18:57
2
I would like to have a similar behavior than the <Table> HTML tag, in the sense where the frame is sized according to its content.
In my very context, I use an UIStackView as the content vie...
Hibben asked 13/4, 2016 at 7:20
3
Solved
UIStackView is similar to Android LinearLayout but I could not figure out how to set weight for the subviews.
Suppose I have a vertical UIStackView and 3 UIImageViews in it. I want to set weights ...
Kazimir asked 8/12, 2015 at 16:15
2
Solved
Say for example I want to add 3 buttons to a stack view.
Button1 is 200 * 200 (1)
Button2 is 150 * 150 (0.75)
Button3 is 100 * 100 (0.5)
How can I accomplish this in interface builder?
Vulgarize asked 3/12, 2015 at 10:36
2
Solved
I have a UIStackView inside a vertically scrolling UIScrollView with everything constrained using Auto Layout. The scroll view fills the superview, the stack view fills the scroll view, and various...
Organdy asked 30/9, 2017 at 18:50
2
I have a view on my app where I need to be able to push a dynamic number of custom subviews (the number of views changes whilst its running).
My original idea was a tableview, but it seems a bit O...
Phytosociology asked 10/11, 2016 at 17:19
3
Solved
I have a label, an Image View, and a button in a vertical stack view. The alignment is set to fill, and the distribution to equal spacing with an offset of 10. On my storyboard, the label appears o...
Pancho asked 28/5, 2017 at 20:16
1
I'm newbie and I've wrote a customView inherited from StackView and I created a button programmatically with few attributes and when I add it to my custom view, I have two problems:
If I use addA...
Heavenly asked 18/3, 2019 at 12:44
4
Solved
I've yet to find an answer for this anywhere and I'm not sure if it's possible, but I'm trying to right align a horizontal UIStackView, so that if subviews are hidden they move towards the right si...
Monocle asked 25/10, 2016 at 8:45
1
What I Want:
I want to place 2 Views side by side in a horizontal way. For this I am creating UIStackView programmatically. Look at the below snippet
What I Have Done:
let mStackView = UIStack...
Hume asked 25/2, 2019 at 11:28
14
Solved
When my UIStackView "rows" are squished, they throw AutoLayout warnings. However, they display fine and nothing else is wrong besides these sorts of loggings:
Unable to simultaneously satisfy co...
Territerrible asked 6/9, 2015 at 20:54
1
I have two vertical StackView nested in horizontal StackView. For the first one:
titlesView.axis = .vertical
titlesView.distribution = .fill
titlesView.alignment = .leading
And the second one:
...
Mize asked 10/12, 2017 at 13:49
2
Solved
I'm looking to build a view which will grow as subviews are added to it. At first the height will be zero, then should grow as I add subviews until it reaches a maximum size, and then I want it to ...
Dillie asked 22/1, 2019 at 17:39
2
Solved
On the storyboard, inside a view controller I have a scrollview. A navigation bar and a stack view are embedded inside the scrollview.
Programmatically I am adding some UI elements one below the ot...
Mady asked 18/1, 2019 at 6:13
5
Solved
I'm trying to hide UIStackView's subview like this:
UIViewPropertyAnimator.runningPropertyAnimator(withDuration: 2.0,
delay: 0, options: [.curveEaseOut], animations: {
self.label.isHidden = tru...
Profane asked 5/1, 2019 at 18:39
1
Solved
I have some table view cells that need to display some simple html from our server. Am converting the html into an NSAttributedString so that it can be displayed in UILabel objects on the cells. Bu...
Mealtime asked 13/11, 2018 at 2:4
1
Solved
Introduction
I'm creating an app which uses a custom view in which I have a UIStackView to sort out 5 UIControls. When a user taps one of the UIControls an underscore line gets animated, sliding u...
Floorer asked 2/11, 2018 at 22:48
1
My stack view contains an image and label to display some tasks. They were all left aligned on multiple rows.
I didn't have any issue running on Xcode 9, but when I run on Xcode 10 beta 6, I get ...
Seeseebeck asked 26/8, 2018 at 8:5
4
Solved
I started to create a very simple tic-tac-toe game.
The main goal is to make the view proportional to all screen sizes of all iOS devices.
So I put the image on a ViewController, make it full size ...
Garnish asked 17/10, 2015 at 10:50
1
I'm getting "Unable to simultaneously satisfy constraints" when using UIStackView's .hidden property.
I know it's because since I set Distribution to "fill equally" and the Spacing to 1 and then h...
Nonunionism asked 24/1, 2016 at 6:13
1
Solved
I have added 2 views in stackview with different size. Now When I click on plus button of any view, I just wanted to add a view right below that.
I am getting view by:
let index = superView.subvi...
Stimulative asked 19/9, 2018 at 15:50
2
Solved
I have a horizontal stackview with a UIImageView (1:1 Aspect Rati, Height 32) and a label. Since it has a height the stackView cuts off my label on the right not letting me have more than one line....
Pathognomy asked 22/8, 2018 at 10:21
4
Solved
I am using a UIStackView in iOS 9 SDK. The height of the stackview is 44 points. I have a UILabel and UIView inside the StackView as shown below:
Now, I want to make the green view much smaller th...
Sluggard asked 18/9, 2015 at 16:13
2
I have the following hierarchy in my application
- UIScrollView
- UIStackView
- UIView 1 // load with xib and added in arrangedSubviews
- UIScrollView 1.1 // horizontal scrolling, fixed height ...
Interleave asked 7/8, 2018 at 6:23
© 2022 - 2024 — McMap. All rights reserved.