I have a standard UITable. When the user scrolls through the rows and then clicks on one of the cells; they will be transfered to another view. There will be some process time from the tap of the cell to the new view. I would like to display a UIActivityIndicator in a view that over lays the center of the UITable. I am not sure though how to obtain the visible center of the UITable.
The code I have:
myView.center = self.tableView.center;
Puts it in the center of the UITable until I start scrolling further and further down. Then the UIActivityIndicator stays up at the top, so it appears UITableView.center does not represent the “Visible Center”.
Any tips on how I can achieve this?
Thanks!
Flea
There are two ways to achieve this.
Either you add your activity indicator view to the same view holding the
tableViewand THEN they can have the same center:or you decide to add your monitor view to the tableView but then the center of this view must be calculated and will depend on the size of indicator view.