Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

It's probably better to use the class to check

  • Loading branch information...
commit 04e9584df1bace90d45c14f9a6c22b2dc307c1ca 1 parent d4bfddc
@Sephiroth87 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ODRefreshControl/ODRefreshControl.m
View
2  ODRefreshControl/ODRefreshControl.m
@@ -173,7 +173,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
if (!_didSetInset) {
_didSetInset = YES;
_hasSectionHeaders = NO;
- if([self.scrollView respondsToSelector:@selector(numberOfSections)]){
+ if([self.scrollView isKindOfClass:[UITableView class]]){
for (int i = 0; i < [(UITableView *)self.scrollView numberOfSections]; ++i) {
if ([(UITableView *)self.scrollView rectForHeaderInSection:i].size.height) {
_hasSectionHeaders = YES;
Please sign in to comment.
Something went wrong with that request. Please try again.