Why doesn't the cell show anything in this code:
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[cell.imageView addSubview:spinner];
[spinner startAnimating];
cell.textLabel.text=@"Carregando...";
[spinner release];
I'm doing this inside tableView:cellForRowAtIndexPath:
.
I tried size to fit, create a frame to cell.imageView
and a same size frame to the spinner, but nothing works.
What´s wrong with this code?
Thank you..!