澎湃iPad上线版本

topicMoreInfoController.m 2.3KB

    // // topicMoreInfoController.m // ThePaperHD // // Created by scar1900 on 15/3/3. // Copyright (c) 2015年 scar1900. All rights reserved. // #import "topicMoreInfoController.h" @interface topicMoreInfoController () @end @implementation topicMoreInfoController @synthesize nodeObj = _nodeObj; - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.titleHeadView.hidden = YES; self.title = self.nodeObj.name; } - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.titleHeadView.hidden = YES; self.navigationController.navigationBarHidden = NO; if (isIOS7) { self.navigationController.navigationBar.barTintColor = [UIColor colorWithHexString:CardBackGroundColor]; //bug fixed:4589: 夜间模式,专题页,选择查看更多,顶部的标题栏反色不对 }else { self.navigationController.navigationBar.tintColor = [UIColor colorWithHexString:CardBackGroundColor]; } NSDictionary *dic = @{NSForegroundColorAttributeName:[UIColor colorWithHexString:TextBlack],NSFontAttributeName:appFont(20, NO)}; self.navigationController.navigationBar.titleTextAttributes = dic; } - (void)refreshRemoteMethod { NSDictionary *dic = @{@"n":self.nodeId,@"topic":@"1"}; [Remote doJsonAction:1 requestUrl:nodeContentListURL parameter:dic delegate:self]; } - (void)setNodeObj:(nodeObjectBO *)data { _nodeObj = data; self.nodeId = data.nodeId; } #pragma mark - remote - (void)configNodeInfoWithResData:(id)resData { if (resData[@"nodeInfo"]) { self.titleHeadView.hidden = YES; nodeObjectBO *node = setJsonDicToDataModel(resData[@"nodeInfo"], [nodeObjectBO class]); self.nodeObj = node; self.title = self.nodeObj.name; } } - (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