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
52
53
54
55
56
57
58
59
60
61
62
//
//  PBChooseModelViewController.m
//  IphoneBIMe
//
//  Created by zjf on 2018/12/17.
//  Copyright © 2018 ProBIM. All rights reserved.
//
 
#import "PBChooseModelViewController.h"
#import "PBModelsModel.h"
#import "PBPositioningTypeViewController.h"
#import "PBExamineAddModel.h"
 
@interface PBChooseModelViewController ()
 
@end
 
@implementation PBChooseModelViewController
 
- (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];
    PBPositioningTypeViewController *positioningTypeVC = [[PBPositioningTypeViewController alloc] init];
    positioningTypeVC.projectModel = self.projectModel;
    positioningTypeVC.modelsModel = modelsModel;
    positioningTypeVC.examineAddModel = self.examineAddModel;
    [self.navigationController pushViewController:positioningTypeVC animated:YES];
}
 
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
    return NO;
}
 
- (void)setExamineAddModel:(PBExamineAddModel *)examineAddModel {
    _examineAddModel = examineAddModel;
}
/*
#pragma mark - Navigation
 
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
 
@end