leah / PullToRefresh

A simple iPhone TableViewController for adding pull-to-refresh functionality.
http://blog.leahculver.com/2010/07/iphone-pull-to-refresh.html
MIT License
1.91k stars 253 forks source link

Moved NSString declarations into viewDidLoad #8

Open iheart2code opened 13 years ago

iheart2code commented 13 years ago

For whatever reason, the initWithStyle method wasn't be called for me. This meant that the labels weren't being assigned any values. I'm assuming this happened because I'm using a NIB file.

I moved the NSString declarations into the viewDidLoad method, before the addPullToRefreshHeader method call and everything is working as expected.

Thanks for making this available!

iheart2code commented 13 years ago

aaronpk's commit fixes this as well