Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #import "ListViewController.h"
  2.  
  3. @interface SearchViewController ()
  4.  
  5. @end
  6.  
  7. @synthesize listController;
  8.  
  9. - (void)viewDidLoad {
  10. [super viewDidLoad];
  11.  
  12.  
  13. self.listController =[[ListViewController alloc] init];
  14. [self.view insertSubview:listController.view belowSubview:mainTabBar];
  15. self.listController.view.frame = CGRectMake(0, tabHeight, screenWidth, (screenHeight-tabHeight));
  16.  
  17. }
  18. @end
  19.  
  20. #import “PlaceViewController.h"
  21.  
  22. @interface ListViewController ()
  23.  
  24. @end
  25.  
  26. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  27. {
  28. PlaceViewController *vc = [[PlaceViewController alloc] init];
  29. [self.navigationController pushViewController:vc animated:YES];
  30.  
  31. [tableView deselectRowAtIndexPath:indexPath animated:YES];
  32. }
  33.  
  34. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement