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 252 forks source link

Text not displaying in refresh cell #1

Closed renegade78 closed 14 years ago

renegade78 commented 14 years ago

Hi,

First of all, can I just say thank you for such awesome code.

I am having a problem though and I'm not sure if I'm doing something really obviously wrong or not!

Basically, the cell displays the arrow and activity indicator fine but no text appears. I was wondering if you knew why this might be? I have installed as per your instructions.

Many thanks in advance!

leah commented 14 years ago

Does the demo app work for you okay? Are you customizing the text or label?

renegade78 commented 14 years ago

Yes, the demo works perfectly! I've left the text and label code as is - I will be customising it later.

I'm wondering if it's to do with the appdelegate as mine is different to yours as I have a tab bar controller.

leah commented 14 years ago

Hmm... I changed the demo to a UITabBarController instead of a UINavigationController and it still worked okay. Maybe there's a naming conflict? Do you have another label called "refreshLabel"? Also, does the text show up when you start pulling on the view, or does it never show up at all?

renegade78 commented 14 years ago

I don't have another label with that name. The text never shows! But the arrow does! Don't worry, I'm obviously doing something wrong!

renegade78 commented 14 years ago

Thanks for your help, I sorted it. I moved setting the text from the viewdidload method. Thanks though!

jonhull commented 13 years ago

I had the same issue. I think it is because I loaded the view via a xib, and the label strings are set in initWithStyle:. I moved it to viewDidLoad and everything works now...

lucaslain commented 13 years ago

YES! Thank you @Jonhull! I had the same problem. Moved the labels to "viewDidLoad" and everything works =).

ps: @leah ... great work :)

Lucas.