Am fetching data from server, and am able to receive all the data, but it shows blank cell when I run the project. When I keep the breakpoint I understood that the code is not executing after the VisitorsTableViewCell *cell = (VisitorsTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
.
NOTE: this code worked perfectly in xcode 6.4
- (NSInteger)numberOfSectionsInTableView:(UITableView *)aTableView {
// Number of sections is the number of regions
return 1;
}
- (NSInteger)tableView:(UITableView *)aTableView numberOfRowsInSection:(NSInteger)section {
// Number of rows is the number of time zones in the region for the specified section
return [VisitorsNameArray count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"VisitorsTableCell";
VisitorsTableViewCell *cell = (VisitorsTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell.visitorName.text = [VisitorsNameArray objectAtIndex:indexPath.row];
cell.visitorComment.text = [VisitorsCommentArray objectAtIndex:indexPath.row];
cell.visitorDate.text = [VisitorsDateArray objectAtIndex:indexPath.row];
cell.visitorLocation.text = [VisitorsLocationArray objectAtIndex:indexPath.row];
return cell;
}