澎湃iPad上线版本

settingHomeController.m 1.6KB

    // // settingHomeController.m // ThePaperHD // // Created by scar1900 on 15/3/24. // Copyright (c) 2015年 scar1900. All rights reserved. // #import "settingHomeController.h" #import "MLNavigationController.h" #import "settingListController.h" @interface settingHomeController () @property(nonatomic, strong)MLNavigationController *homeVC; @property(nonatomic, strong)settingListController *settingListVC; @end @implementation settingHomeController @synthesize homeVC,settingListVC; @synthesize isOpenNightMode; - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.isOpenNightMode = [TPUserDefault instance].isNightMode; self.view.backgroundColor = [UIColor clearColor]; self.settingListVC = [[settingListController alloc]init]; [self addChildViewController:self.settingListVC]; self.homeVC = [[MLNavigationController alloc]initWithRootViewController:self.settingListVC]; self.homeVC.view.backgroundColor = [UIColor clearColor]; self.homeVC.view.frame = self.view.bounds; [self.view addSubview:self.homeVC.view]; [self addChildViewController:self.homeVC]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } /* #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