//
|
// 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
|