- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return dict.count;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *simpleTableIdentifier = @"RestaurantResultsCell";
RestaurantDetailsViewCell *cell = (RestaurantDetailsViewCell *)[tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
if (cell == nil) {
NSArray *nib = [[NSBundle mainBundle]loadNibNamed:@"restaurantDetailsCell" owner:self options:nil];
cell = [nib objectAtIndex:0];
}
arrResponse =[NSArray arrayWithObject:dict];
arr = [arrResponse objectAtIndex:0];
dictio = [arr objectAtIndex:0];
cell.cusineRestLabel.text = [[dictio valueForKey:@"restaurant_name"]objectAtIndex:indexPath.row];
NSLog(@"cell is %@",cell.cusineRestLabel.text);
// cell.cusineRestLabel.text = [dic objectForKey:@"restaurant_name"];
cell.cusineRestAddress.text = [dictio valueForKey:@"restaurant_streetaddress"];
NSLog(@"cell is %@",cell.cusineRestAddress.text);
cell.cusineDeliveryTime.text = [dictio valueForKey:@"restaurant_delivery"];
NSLog(@"cell is %@",cell.cusineDeliveryTime.text);
return cell;
}
after executing for the first time [__NSArrayI length]: unrecognized selector sent to instance