Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  2. {
  3. [tableView deselectRowAtIndexPath:indexPath animated:YES];
  4.  
  5. RARCatalogRestaurantModel *catalogRestaurantModel = [self.restaursnts objectAtIndex:indexPath.row];
  6. RARDetailRestaurantModel *detailRestaurantModel = [[RARDetailRestaurantsCoreDataModelController sharedInstance] restaurantDetailModelWithRestaurantID:restaurantID];
  7.  
  8. RARRestaurantCardViewController *restaurantCardViewController = [[RARRestaurantCardViewController alloc] initWithNibName:NSStringFromClass([RARRestaurantCardViewController class]) bundle:[NSBundle mainBundle]];
  9. [restaurantCardViewController setCatalogRestaurantModel:catalogRestaurantModel];
  10. [restaurantCardViewController setDetailRestaurantModel:detailRestaurantModel];
  11. [self.navigationController pushViewController:restaurantCardViewController animated:YES];
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement