zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
//  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