简体   繁体   English

Swift在VC上拖动两个视图

[英]Swift drag two views on VC

If some one please can point me in the right direction. 如果有人,请指出正确的方向。 I have two views in the same view controller and i what that the user can drag up the lower view and make it bigger and the second one smaller. 我在同一个视图控制器中有两个视图,并且用户可以拖动较低的视图并将其放大,而将第二个缩小。

在此处输入图片说明

在此处输入图片说明

On the Mac you'd use a split view. 在Mac上,您将使用拆分视图。 To my knowledge iOS's UISplitViewController isn't resizable, but you could try MGSplitViewController or some other open source variant. 据我所知,iOS的UISplitViewController不能调整大小,但是您可以尝试MGSplitViewController或其他一些开源变体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM