Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. - (void)restaurantListTableViewCell:(RARRestaurantListTableViewCell *)cell didTapBookButtonWithRestaurantID:(NSString *)restaurantID
  2. {
  3. NSArray *searchRestaurant = [self.restaursnts filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"restaurantID == %@", restaurantID]];
  4. if ([searchRestaurant count] > 0) {
  5. RARCatalogRestaurantModel *restaurant = [searchRestaurant firstObject];
  6. RARRestaurantBookViewController *restaurantBookViewController = [[RARRestaurantBookViewController alloc] initWithNibName:NSStringFromClass([RARRestaurantBookViewController class]) bundle:[NSBundle mainBundle]];
  7. [restaurantBookViewController setCatalogRestaurantModel:catalogRestaurantModel];
  8. [restaurantBookViewController setBookType:RARBookTypeRestaurantType];
  9. [self.navigationController pushViewController:restaurantBookViewController animated:YES];
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement