Swift - How to link two view controllers into one container view and switch between them using segmented control?

后端 未结 3 1477
情深已故
情深已故 2020-12-01 08:18

I got one view controller that contain 1 segmented control and 2 UI views. But I think it\'s too complicated to update the UI view for enhancement for future editing. I\'m u

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 09:06

    I tried extensively to do this a while ago. For some reason the hidden properties wouldn't work for me, and the container view doesn't seem to update. I know it's not the ideal solution, but I ended up creating two container views and using the segmented control to change the alphas of the container views. Again, not ideal, but it worked nicely.

提交回复
热议问题