Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
- {
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- RARCatalogRestaurantModel *catalogRestaurantModel = [self.restaursnts objectAtIndex:indexPath.row];
- RARDetailRestaurantModel *detailRestaurantModel = [[RARDetailRestaurantsCoreDataModelController sharedInstance] restaurantDetailModelWithRestaurantID:restaurantID];
- RARRestaurantCardViewController *restaurantCardViewController = [[RARRestaurantCardViewController alloc] initWithNibName:NSStringFromClass([RARRestaurantCardViewController class]) bundle:[NSBundle mainBundle]];
- [restaurantCardViewController setCatalogRestaurantModel:catalogRestaurantModel];
- [restaurantCardViewController setDetailRestaurantModel:detailRestaurantModel];
- [self.navigationController pushViewController:restaurantCardViewController animated:YES];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement