scrollview嵌套触发scrollsToTop

On iPhone, we execute this gesture only if there’s one on-screen scroll view with 

scrollsToTop == YES. If more than one is found, none will be scrolled.

IOS 下 UITableView/UIScrollView 有个特性:点击状态栏回到顶部。

如果当前 view 下有多个 scrollView 嵌套,

点击回到顶部就无效,因为系统不知道该响应哪个,索性就全部禁用.

fixed : 当前显示哪个ScrollView,哪个的scrollsToTop就设置为YES,其余的设置为NO;

你可能感兴趣的:(scrollview嵌套触发scrollsToTop)