I have a UITableViewController subclass. When I try to add a subView its not showing.
The subView is a UIImageView, I made a custom loading view (its shown when user is loading data from web).
But when I add,
[self.tableView addSubview:spinner];
[spinner startAnimating];
The spinner is not showing. What am I missing or I did wrong?
EDIT
Code of spinner
UIImageView *spinner = [[UIImageView alloc]init];
spinner.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"spin8.png"],
[UIImage imageNamed:@"spin7.png"],
[UIImage imageNamed:@"spin6.png"],
[UIImage imageNamed:@"spin5.png"],
[UIImage imageNamed:@"spin4.png"],
[UIImage imageNamed:@"spin3.png"],
[UIImage imageNamed:@"spin2.png"],
[UIImage imageNamed:@"spin1.png"],
nil];