I am woundering how I could show a activity indicator on a cell from the didselectCellFromIndexPath method?
basicly i want to start the activity indicator animation from the did select then once I get a return from my parsing class I would stop the animation and replace with a tick. but im not sure how to do this inside the didselectcell method? this is the code I would use.
cellActivityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[cell setAccessoryView:cellActivityIndicator];
//then
[cellActivityIndicator startAnimating];
//then
[cellActivityIndicator stopAnimating];
but i just need some advice on doing it inside indexPath:didSelectRowAtIndexPath: method
In your
didSelectRowAtIndexPathmethod, you can access the cell itself using:This method uses libdispatch/Grand Central Dispatch and requires you to have iOS 4 or greater.