Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)restaurantListTableViewCell:(RARRestaurantListTableViewCell *)cell didTapBookButtonWithRestaurantID:(NSString *)restaurantID
- {
- NSArray *searchRestaurant = [self.restaursnts filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"restaurantID == %@", restaurantID]];
- if ([searchRestaurant count] > 0) {
- RARCatalogRestaurantModel *restaurant = [searchRestaurant firstObject];
- RARRestaurantBookViewController *restaurantBookViewController = [[RARRestaurantBookViewController alloc] initWithNibName:NSStringFromClass([RARRestaurantBookViewController class]) bundle:[NSBundle mainBundle]];
- [restaurantBookViewController setCatalogRestaurantModel:catalogRestaurantModel];
- [restaurantBookViewController setBookType:RARBookTypeRestaurantType];
- [self.navigationController pushViewController:restaurantBookViewController animated:YES];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement