uistackview Questions

5

Solved

I have two items in a vertical UIStackView: a UILabel and a UITableView. When a dynamic amount of UITableViewCells get added to the UITableView at runtime, the UIStackView does not get larger. Is...
Pinxit asked 30/6, 2017 at 2:36

14

Solved

In the detailViewController of a UISplitView I have subviews added to a UIStackView inside a UIScrollView. Just using system buttons without subviews or images, results in responsive buttons, but ...
Haler asked 26/8, 2016 at 13:19

4

Solved

A number of views in a UIStackView are adjusted to fit the stack. The views are initialised with no frame because they are resized by the stack view. Is there a way which I can get the size of the ...
Analogical asked 6/11, 2015 at 3:1

4

Solved

I have a UIStackView where it can show a label, image, table view or nothing based on user selection. Here is my current hierarchy for the dynamic view: UIStackView_Parent UILabel - some text, ...
Squint asked 14/9, 2016 at 1:18

9

From the UIStackView Class Reference In removeArrangedSubview: To prevent the view from appearing on screen after calling the stack’s removeArrangedSubview: method, explicitly remove the view f...
Muhammadan asked 30/5, 2016 at 12:28

4

I'm working on trying to recreate the first SwiftUI Tutorial in code without using SwiftUI. In the example, it mentions using a Spacer "to direct the layout to use the full width of the device...
Punak asked 26/2, 2021 at 18:43

4

Solved

I'm trying to update a UIStackView so that a field displays, should the value of a UITextField equal "Other". Here is my code: @IBOutlet var stackView: UIStackView! func updateView() { print("UPD...
Original asked 7/5, 2017 at 12:51

12

Solved

This is my setup: I have an UIScrollView with leading,top, trialing edge set to 0. Inside this I add an UIStackView with this constraints: stackView.centerYAnchor.constraintEqualToAnchor(selectedC...
Optometrist asked 13/9, 2015 at 16:29

1

I have an issue where I'm trying to insert a SwiftUI view into an existing UIKit view. The SwiftUI view can change height dynamically, but the UIStackView does not adjust to the new size. I've crea...
Tuyettv asked 23/3, 2023 at 12:24

2

Is it possible to animate an arranged subview when its intrinsic content size changes? For example, imagine I have an arranged subview, which holds a single UILabel pinned to edges. That label ha...
Plush asked 12/2, 2016 at 14:59

2

Solved

What effect do the First Baseline and Last Baseline properties have on the subviews of a UIStackView? Generally, can someone please illustrate the implementation of these values?
Ada asked 26/11, 2015 at 7:31

3

Solved

I have a horizontal UIStackView that, by default, looks as follows: The view with the heart is initially hidden and then shown at runtime. I would like to reduce the spacing between the heart vi...
Reynalda asked 15/3, 2018 at 17:56

2

Solved

I have an UIStackView set up on the title view of the navigation bar in my app. It simply shows the icon of the app to the left of the title. In iOS 15 and earlier, this displayed fine. Right now, ...

17

Solved

I'm trying to add views in UIStackView programmatically. For now My code is: UIView *view1 = [[UIView alloc]init]; view1.backgroundColor = [UIColor blackColor]; [view1 setFrame:CGRectMake(0, 0, 1...
Thunderstorm asked 9/6, 2015 at 9:24

22

Solved

When putting multiline label (with linebreak set to Word Wrap) into a stack view, the label immediately loses the linebreak and displays the label text in one line instead. Why is this happening a...
Miter asked 20/12, 2015 at 22:25

5

Solved

In iOS 10 and below, there was a way to add a negative spacer to the buttons array in the navigation bar, like so: UIBarButtonItem *negativeSpacer = [[UIBarButtonItem alloc] initWithBarButtonSyste...
Centro asked 7/8, 2017 at 10:40

9

Solved

I have an horizontal stack view that I added arranged sub views to it (7 cells). Each one of the cells in the stack has a circular badge that exceeds the view boundaries (negative constraint). When...
Backwoods asked 16/1, 2016 at 12:17

22

Solved

I tried to change the UIStackView background from clear to white in Storyboard inspector, but when simulating, the background color of the stack view still has a clear color. How can I change the b...
Layamon asked 19/1, 2016 at 4:6

8

I'm trying to align the items in UIStackview horizontally to the left. Is there anyway to do this programmatically? I tried to do this via storyboard but was not successful. For some reason, the i...
Mychael asked 28/12, 2016 at 19:25

6

Solved

In iOS 11 the behaviour of the hide animation within a UIStackView has changed, but I have been unable to find this documented anywhere. iOS 10 iOS 11 The code in both is this: UIView.anima...
Phylogeny asked 20/9, 2017 at 15:36

9

I'm trying to give 5 separate UIStackViews in my ViewController borders. I gave each of them an IBOutlet and then called them in viewDidLoad to use the layer property but to no avail. Is it not pos...
Habitual asked 10/12, 2015 at 21:7

20

Solved

Let's say I have added more views in UIStackView which can be displayed, how I can make the UIStackView scroll?
Steinman asked 28/7, 2015 at 6:36

5

Solved

Stackview containing array of textfield is embedded in scrollview. I want to change the order of the text fields on some actions. The way to remove and add the textfield results in distorted view. ...
Might asked 26/12, 2016 at 4:48

4

I have a stack view with these properties: Axis: Vertical Alignment: Fill Distribution: Fill I add other horizontal stack views to that vertical one with the below properties: Axis: Horizontal Ali...
Plaid asked 3/1, 2018 at 15:14

4

Solved

So, I have a UIStackView that contains four (4) UIViews. If I remove one (1) of those UIViews, the other three (3) will fill the entire space in the UIStackView. MY QUESTION: How can I add a max ...
Absent asked 26/10, 2016 at 6:9

© 2022 - 2024 — McMap. All rights reserved.