12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // descVC.m
- // jiaPei
- //
- // Created by apple on 16/1/21.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "descVC.h"
- @interface descVC ()
- @end
- @implementation descVC
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.title = _titleString;
- self.view.backgroundColor = backGroundColor;
- [self configNavigationBar];
-
- UITextView *tv = [[UITextView alloc] initWithFrame:CGRectMake(11, 10, kSize.width - 19, kSize.height-kNavOffSet-10)];
- tv.contentInset = UIEdgeInsetsMake(0, 0, 20, 0);
- tv.backgroundColor = backGroundColor;
- tv.editable = NO;
- tv.text = _desc;
- if (_desc.length == 0)
- {
- if ([_titleString isEqualToString:@"路线详情"]) {
- tv.text = @"暂无路线信息";
- }else{
- tv.text = @"暂无相关简介";
- }
- }
- [tv setFont:[UIFont scaleSize:NormalFont]];
- [self.view addSubview:tv];
- }
- - (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
|