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.
如何手动触摸 UIView 意味着以编程方式。
我想手动触摸 UIScrollView 触摸内的视图。
知道怎么做吗?
或者如何手动调用 UIScrollView 的 scrollViewWillBeginDecelerating?
此功能不适合手动使用。您最好通过添加方法来添加一定程度的间接性。
添加一个包含手动调用所需功能的方法
(void)manualFunctionality {...}
然后在方法的实现中包含对该方法的调用scrollViewWillBeginDecelerating。
scrollViewWillBeginDecelerating
这样,你就符合SDK的初衷,你可以随意手动调用你的新方法。