descVC.m 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // descVC.m
  3. // jiaPei
  4. //
  5. // Created by apple on 16/1/21.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "descVC.h"
  9. @interface descVC ()
  10. @end
  11. @implementation descVC
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. self.title = _titleString;
  15. self.view.backgroundColor = backGroundColor;
  16. [self configNavigationBar];
  17. UITextView *tv = [[UITextView alloc] initWithFrame:CGRectMake(11, 10, kSize.width - 19, kSize.height-kNavOffSet-10)];
  18. tv.contentInset = UIEdgeInsetsMake(0, 0, 20, 0);
  19. tv.backgroundColor = backGroundColor;
  20. tv.editable = NO;
  21. tv.text = _desc;
  22. if (_desc.length == 0)
  23. {
  24. if ([_titleString isEqualToString:@"路线详情"]) {
  25. tv.text = @"暂无路线信息";
  26. }else{
  27. tv.text = @"暂无相关简介";
  28. }
  29. }
  30. [tv setFont:[UIFont scaleSize:NormalFont]];
  31. [self.view addSubview:tv];
  32. }
  33. - (void)didReceiveMemoryWarning {
  34. [super didReceiveMemoryWarning];
  35. // Dispose of any resources that can be recreated.
  36. }
  37. /*
  38. #pragma mark - Navigation
  39. // In a storyboard-based application, you will often want to do a little preparation before navigation
  40. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  41. // Get the new view controller using [segue destinationViewController].
  42. // Pass the selected object to the new view controller.
  43. }
  44. */
  45. @end