vlasov / CCBottomRefreshControl

MIT License
319 stars 77 forks source link

Component doesn't work in iOS 9 #16

Closed Ravul closed 8 years ago

Ravul commented 8 years ago

I've just installed XCode 7 and tested the project in iOS 9. It seems the component enters an infinite loop at the line 182 from UIScrollView+BottomRefreshControl.m: "[self brc_setContentOffset:contentOffset];" screen shot 2015-09-20 at 8 12 47 pm

It is strange that I only use it for CollectionView and TableView but it appears as calling setContentOffset on UITextView.

YK-Unit commented 8 years ago

I got the same problem.It's so strange.

razovVladimir commented 8 years ago

Maybe u use UITextView+Placeholder or other projects which have method +(void) load { [super load]; //}

Ravul commented 8 years ago

Ok, that was exactly the problem. I've fixed it. Thanks!

YK-Unit if you have the same problem you can either add if ([self class] == [UITextView class]) { [super load]; } else { ... } in the UIScrollView (BottomRefreshControl) component or remove the [super load] from the other components that might get to this method.