// // PBIssueMoselListController.m // IphoneBIMe // // Created by zjf on 2019/1/10. // Copyright © 2019 ProBIM. All rights reserved. // #import "PBIssueModelListController.h" #import "PBIssueAddModel.h" #import "PBIssuePositionTypeController.h" @interface PBIssueModelListController () @end @implementation PBIssueModelListController - (void)viewDidLoad { [super viewDidLoad]; } - (void)setupNav { self.title = @"模型选择"; PBBackNavItem *backNav = [PBBackNavItem backNacItem]; backNav.title = @" "; [backNav addTarget:self action:@selector(backItemAction) forControlEvents:UIControlEventTouchUpInside]; UIBarButtonItem *backNavItem = [[UIBarButtonItem alloc] initWithCustomView:backNav]; self.navigationItem.leftBarButtonItem = backNavItem; } - (void)backItemAction { [self.navigationController popViewControllerAnimated:YES]; } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { PBModelsModel *modelsModel = self.modelsArrM[indexPath.row]; PBIssuePositionTypeController *positioningTypeVC = [[PBIssuePositionTypeController alloc] init]; positioningTypeVC.projectModel = self.projectModel; positioningTypeVC.modelsModel = modelsModel; positioningTypeVC.issueAddModel = self.issueAddModel; [self.navigationController pushViewController:positioningTypeVC animated:YES]; } - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { return NO; } - (void)setIssueAddModel:(PBIssueAddModel *)issueAddModel { _issueAddModel = issueAddModel; } @end