Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有内容视图的滚动视图,最后是内容视图的子视图。我想停止[scrollView scrollEnabled:NO]从子视图滚动。我可以了解方法吗?
[scrollView scrollEnabled:NO]
我面前没有 Xcode,但你不能self.superview从你的子视图代码中获得超级视图吗?
self.superview
例如,像这样:
[subview.superview scrollEnabled:NO];
停止[scrollView scrollEnabled:NO]从子视图滚动?也许您需要一个控制视图的 viewController。你清楚MVC吗?