Change the structure automatically? (iOS/Storyboard) [closed]












0















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.










share|improve this 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.























    0















    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.










    share|improve this 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.





















      0












      0








      0








      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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.


























          1 Answer
          1






          active

          oldest

          votes


















          1














          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






          share|improve this answer
























          • 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




















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          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






          share|improve this answer
























          • 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


















          1














          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






          share|improve this answer
























          • 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
















          1












          1








          1







          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






          share|improve this answer













          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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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





















          • 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







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith