View Single Post
  #2 (permalink)  
Old March 16th, 2012, 08:33 AM
thepianoguy thepianoguy is offline
Friend of Wrox
Points: 1,671, Level: 16
Points: 1,671, Level: 16 Points: 1,671, Level: 16 Points: 1,671, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts

I don't think using an alertView is the right way to display the activity indicator, and with the way you have it set up there is no way to manually dismiss the alertView since it has no buttons. I assume that you intend to dismiss it programmatically when the tableView has finished loading. I would create a view to overlay on the tableView with the text and activity indicator and add it when the tableView is loading, dismissing it when the loading is complete.

Second, since your alertView is autoreleased, it should not be released again in your -dismissAlert method.

Download the Part 4: Custom Animations Demo and see how the "Countdown" tab approaches the situation. Is this similar to what you are trying to achieve?

The Following User Says Thank You to thepianoguy For This Useful Post:
IandiPhone (March 19th, 2012)