samvermette/SVPullToRefresh — pull request #58 by wilhelmbot (2012-09-06 18:54:04+00:00)
Title: Expose SVPullToRefreshState as readonly

This is helpful when the callback is also used in other parts of the controller

E.g.

```obj-c
// For demo purposes: this should be __weak in ARC
__block typeof(self) bself = self;
[self.tableView addPullToRefreshWithActionHandler:^{
[bself fetchPosts];
}];

// ...

- (void)fetchPosts
{
if (self.tableView.pullToRefreshView.state == SVPullToRefreshStateLoading) NSLog("foo");
}
```