I want to populate data into a tableview from a web service call. But tableView numberOfRowsInSection executes before I get back my results from the web service call(which brings back data immediately) Here is my code:
- (void)viewDidLoad {
[super viewDidLoad];
routes = [[NSMutableArray alloc] init];
[self loadDataWithStopName:@""];
[self.tblview reloadData];
}
.h:
@interface ViewController : UIViewController<UITableViewDelegate, UITableViewDataSource>
as you can see, I even tried to reloadData on the tableview property, but it did not work.