| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- //
- // DeveceList_VC.m
- // Haishenghai-master
- //
- // Created by GG on 2018/12/30.
- // Copyright © 2018年 Haishenghai intelligence network technology. All rights reserved.
- //
- #import "DeveceList_VC.h"
- #import <MJRefresh.h>
- #import "SiteTableViewController.h"
- #import "DeveceTableViewController.h"
- #define ScreenWidth [UIScreen mainScreen].bounds.size.width
- #define ScreenHeight [UIScreen mainScreen].bounds.size.height
- @interface DeveceList_VC ()
- @end
- @implementation DeveceList_VC
- // 如果不想让其他页面的导航栏变为透明 需要重置
- - (void)viewWillDisappear:(BOOL)animated{
- [super viewWillAppear:animated];
-
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view.
- self.navigationItem.title = @"设备";
- self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:60/255.0 green:114/255.0 blue:255/255.0 alpha:1];
- [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:18],NSForegroundColorAttributeName:[UIColor whiteColor]}];
-
- self.view.backgroundColor = [UIColor whiteColor];
- CGFloat width = self.view.frame.size.width*0.25;
- CGFloat height = self.view.frame.size.height-64;
- //右侧
- DeveceTableViewController *devece =[[DeveceTableViewController alloc]init];
- devece.view.frame = CGRectMake(width+0.5, 0, ScreenWidth-width, height);
- [self addChildViewController:devece];
- [self.view addSubview:devece.view];
- //左侧
- SiteTableViewController *site = [[SiteTableViewController alloc]init];
- site.view.frame = CGRectMake(0, 64, width, height);
- site.delegate = devece;
- [self addChildViewController:site];
- [self.view addSubview:site.view];
-
- UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(width, 0, 0.5, ScreenHeight)];
- lineView.backgroundColor = [UIColor grayColor];
- [self.view addSubview:lineView];
- }
- -(void)createData{
-
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- //#pragma mark---respose Event
- //
- //-(void)addBtnClick:(UIButton *)addBtn{
- //}
- //
- //-(void)studyBtnClick:(UIButton *)studyBtn{
- //
- //}
- /*
- #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
|