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

A Big Bug?! #96

Open
nameislihong opened this issue Jan 8, 2013 · 6 comments
Open

A Big Bug?! #96

nameislihong opened this issue Jan 8, 2013 · 6 comments

Comments

@nameislihong
Copy link

for(int i=0; i<1; i++)
[self.dataSource addObject:[NSDate dateWithTimeIntervalSinceNow:-(i*90)]];

It will be trigger a Infinite Scrolling Action when pull refresh!

Chines:当下拉刷新时会触发一个Infinite scrolling的动作!

Thank you,it's a great control!

@sodium
Copy link

sodium commented Jan 8, 2013

As Infinite scrolling is triggered with following conditions:

  1. bounce / scroll upwards;
  2. The Infinite scrolling label is visible;

If the height of your table is less than that of the view container, the bouncing up action for dismissing the push refresh label will trigger the Infinite.

I add the following code in -(void)scrollViewDidScroll:(CGPoint)contentOffset in UIScrollView+SVInfiniteScrolling.m when I deployed this plugin in my work:

-(void)scrollViewDidScroll:(CGPoint)contentOffset{
if(self.state != SVInfiniteScrollingStateLoading && self.enable){
if(contentOffset.y <= 0) return;

...

}
}

@yimingtang
Copy link
Contributor

Are you using an empty table view? If so, you'd better set showsInfiniteScrolling NO

Can you explain how to reproduce such kind of bug in details?

@samvermette
Copy link
Owner

@krafttuc is right that if your table is empty, then showsInfiniteScrolling should initially be set to NO.

@nameislihong
Copy link
Author

It's ok.
Thank you very very,... much!. Foreign friends is always so enthusiasm.
^_^

@yimingtang
Copy link
Contributor

@nameislihong Actually, we are 同胞

@nameislihong
Copy link
Author

 MD_ 7C7BBQ ZNE3_9SW Y

哥被震住了啊

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

4 participants