简体   繁体   English

如何更改uiscrollview的superview?

[英]How to change superview of uiscrollview?

i have a big uiscrollview and topView in ipad viewcontroller, leftscrollView and topView. 我在ipad viewcontroller,leftscrollView和topView中有一个很大的uiscrollview和topView。

there are child scrollviews in leftScrollView. leftScrollView中有子滚动视图。 i want to move a childscrollview into topView . 我想将childscrollview移到topView中。

i couldnt cahnge the superview. 我无法预览。 it says its readonly. 它说它是只读的。

how can i swap it to another view? 如何将其交换到另一个视图?

[topView addSubview:childScrollView];

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

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