UIActivityIndicatorView stops rotating
I experience this when I add UIActivityIndicatorView
one of mine as a subtitle UITableViewCell
, then it only rotates for a short time and then stops. Can anyone know why?
This is basically what I am doing in my code:
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyCell" forIndexPath:indexPath];
if (indexPath.row == 0) cell.accessoryView = spinner;
UILabel *label = (UILabel *)[cell viewWithTag:1];
label.text = @"Some text";
return cell;
}
where spinner
- IBOutlet
:
IBOutlet UIActivityIndicatorView *spinner;
+3
source to share