iPhone, I need to DB refresh func for a few seconds, how can I show progress before a table screen from tab selection?
<p>I'm developing an app which has a tab bar and a UITableView, sometimes I'll need to run a function to update the database, which takes a few seconds. However, this is only needed if they want to look at a certain screen (and the data need updating) which has a UITableView on it.</p>

<p>I want some advice as to how, what, when and where I should show a progress indicator.</p>

<p>I'm thinking that I'll need something which pops up when the table view is about to be shown ?</p>

<p>As I say I don't know what to use to show the progress?</p>

<p>Also where would it be shown, would I need a new screen which is shown before the the table view or can I use and action sheet which will be dismissed automatically ?</p>

<p>Would like some sample code too.</p>
