About UIActivityIndicator

Discussion in 'iOS Programming' started by iphonejudy, Mar 11, 2009.

  1. iphonejudy macrumors 6502


    Sep 12, 2008

    I want to animate activity indicator before table view is loaded and to stop after it is loaded?

    Can we do this?

    I used [activityIndicator startAnimating];
    and [activityIndicator stopAnimating];

    I dont know ,which event i need to call this,

    In documents i saw some examples for webview,For webview,theres some start load and finishload methods are having.

    For table view i cant see such methods.

    Can anyone tell me solution for this problem?

  2. caveman_uk Guest


    Feb 17, 2003
    Hitchin, Herts, UK
    Why is your tableview taking so long to load? If you're using a slow resource (like the internet) you should really decouple the two things. You should display a skeleton outline of the tableview and update it as more information becomes available. To see what I mean look at how the Mail app fills in information as it loads stuff from the mail server.

    If you do it like this your interface stays responsive and usable for the user. The fact it makes your life harder as a developer is not the user's problem.

Share This Page