Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于源码的疑问 #13

Open
Mervin1024 opened this issue Jul 28, 2017 · 1 comment
Open

关于源码的疑问 #13

Mervin1024 opened this issue Jul 28, 2017 · 1 comment

Comments

@Mervin1024
Copy link

qq20170728-152631 2x

这里为什么需要特意限制返回值为false呢?因为项目中复用到了tableView的代理部分,这里想根据情况做不同的处理,但是返回为false时抛出了异常,希望了解的帮助我解答一下。同时如果注释掉了会发生什么情况呢?
@ACode-Farmer
Copy link

作者的意思是代码本身就是默认不让滑动的
如果你想不让滑动的话就不需要实现enableScrollWhenPlaceHolderViewShowing,
如果你开启滑动,再去实现enableScrollWhenPlaceHolderViewShowing,并且return YES;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants