Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "ListViewController.h"
- @interface SearchViewController ()
- @end
- @synthesize listController;
- - (void)viewDidLoad {
- [super viewDidLoad];
- …
- self.listController =[[ListViewController alloc] init];
- [self.view insertSubview:listController.view belowSubview:mainTabBar];
- self.listController.view.frame = CGRectMake(0, tabHeight, screenWidth, (screenHeight-tabHeight));
- }
- @end
- #import “PlaceViewController.h"
- @interface ListViewController ()
- @end
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
- {
- PlaceViewController *vc = [[PlaceViewController alloc] init];
- [self.navigationController pushViewController:vc animated:YES];
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement