Change the structure automatically? (iOS/Storyboard) [closed]
To know better what I mean, check this screenshot here. Let's say the UIView with the number 3 are removed. Is it possible to tell the storyboard or ViewController it should after the remove put the UIView number 4 and 5 higher (the y-position), so that it looks like this screenshot?
Sorry for the very basic question, but I have no idea how I could start or if this have a special name, to google it.
ios swift storyboard
closed as unclear what you're asking by snakecharmerb, Billal Begueradj, Cristik, Mark Rotteveel, Tomasz Mularczyk Jan 1 at 11:18
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
To know better what I mean, check this screenshot here. Let's say the UIView with the number 3 are removed. Is it possible to tell the storyboard or ViewController it should after the remove put the UIView number 4 and 5 higher (the y-position), so that it looks like this screenshot?
Sorry for the very basic question, but I have no idea how I could start or if this have a special name, to google it.
ios swift storyboard
closed as unclear what you're asking by snakecharmerb, Billal Begueradj, Cristik, Mark Rotteveel, Tomasz Mularczyk Jan 1 at 11:18
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
To know better what I mean, check this screenshot here. Let's say the UIView with the number 3 are removed. Is it possible to tell the storyboard or ViewController it should after the remove put the UIView number 4 and 5 higher (the y-position), so that it looks like this screenshot?
Sorry for the very basic question, but I have no idea how I could start or if this have a special name, to google it.
ios swift storyboard
To know better what I mean, check this screenshot here. Let's say the UIView with the number 3 are removed. Is it possible to tell the storyboard or ViewController it should after the remove put the UIView number 4 and 5 higher (the y-position), so that it looks like this screenshot?
Sorry for the very basic question, but I have no idea how I could start or if this have a special name, to google it.
ios swift storyboard
ios swift storyboard
edited Feb 3 at 10:21


Cristik
17.9k124579
17.9k124579
asked Dec 31 '18 at 20:35
BM97BM97
2715
2715
closed as unclear what you're asking by snakecharmerb, Billal Begueradj, Cristik, Mark Rotteveel, Tomasz Mularczyk Jan 1 at 11:18
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by snakecharmerb, Billal Begueradj, Cristik, Mark Rotteveel, Tomasz Mularczyk Jan 1 at 11:18
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This job is best fit for a vertical UIStackView
, as setting
self.view3.isHidden = true
will automatically collapse the view , but if the items count will be many than fit in a single device height , then you have to embed the stackView inside a UIScrollView
, or use a UITableView
instead
That's awesome, thanks!
– BM97
Dec 31 '18 at 20:41
Just out of curiosity: Is it without a UIStackView also possible?
– BM97
Dec 31 '18 at 20:51
yes , but you need to manage the collapse yourself , by hooking the height constraint of the target view as outlet and setting it's constant = 0
– Sh_Khan
Dec 31 '18 at 20:54
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This job is best fit for a vertical UIStackView
, as setting
self.view3.isHidden = true
will automatically collapse the view , but if the items count will be many than fit in a single device height , then you have to embed the stackView inside a UIScrollView
, or use a UITableView
instead
That's awesome, thanks!
– BM97
Dec 31 '18 at 20:41
Just out of curiosity: Is it without a UIStackView also possible?
– BM97
Dec 31 '18 at 20:51
yes , but you need to manage the collapse yourself , by hooking the height constraint of the target view as outlet and setting it's constant = 0
– Sh_Khan
Dec 31 '18 at 20:54
add a comment |
This job is best fit for a vertical UIStackView
, as setting
self.view3.isHidden = true
will automatically collapse the view , but if the items count will be many than fit in a single device height , then you have to embed the stackView inside a UIScrollView
, or use a UITableView
instead
That's awesome, thanks!
– BM97
Dec 31 '18 at 20:41
Just out of curiosity: Is it without a UIStackView also possible?
– BM97
Dec 31 '18 at 20:51
yes , but you need to manage the collapse yourself , by hooking the height constraint of the target view as outlet and setting it's constant = 0
– Sh_Khan
Dec 31 '18 at 20:54
add a comment |
This job is best fit for a vertical UIStackView
, as setting
self.view3.isHidden = true
will automatically collapse the view , but if the items count will be many than fit in a single device height , then you have to embed the stackView inside a UIScrollView
, or use a UITableView
instead
This job is best fit for a vertical UIStackView
, as setting
self.view3.isHidden = true
will automatically collapse the view , but if the items count will be many than fit in a single device height , then you have to embed the stackView inside a UIScrollView
, or use a UITableView
instead
answered Dec 31 '18 at 20:37
Sh_KhanSh_Khan
44.7k51432
44.7k51432
That's awesome, thanks!
– BM97
Dec 31 '18 at 20:41
Just out of curiosity: Is it without a UIStackView also possible?
– BM97
Dec 31 '18 at 20:51
yes , but you need to manage the collapse yourself , by hooking the height constraint of the target view as outlet and setting it's constant = 0
– Sh_Khan
Dec 31 '18 at 20:54
add a comment |
That's awesome, thanks!
– BM97
Dec 31 '18 at 20:41
Just out of curiosity: Is it without a UIStackView also possible?
– BM97
Dec 31 '18 at 20:51
yes , but you need to manage the collapse yourself , by hooking the height constraint of the target view as outlet and setting it's constant = 0
– Sh_Khan
Dec 31 '18 at 20:54
That's awesome, thanks!
– BM97
Dec 31 '18 at 20:41
That's awesome, thanks!
– BM97
Dec 31 '18 at 20:41
Just out of curiosity: Is it without a UIStackView also possible?
– BM97
Dec 31 '18 at 20:51
Just out of curiosity: Is it without a UIStackView also possible?
– BM97
Dec 31 '18 at 20:51
yes , but you need to manage the collapse yourself , by hooking the height constraint of the target view as outlet and setting it's constant = 0
– Sh_Khan
Dec 31 '18 at 20:54
yes , but you need to manage the collapse yourself , by hooking the height constraint of the target view as outlet and setting it's constant = 0
– Sh_Khan
Dec 31 '18 at 20:54
add a comment |