descVC.m 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 = KBackGroundColor;
  16. [self goBackByNavigation];
  17. UITextView *tv = [[UITextView alloc] initWithFrame:CGRectMake(20, 10, kSize.width - 40, kSize.height)];
  18. tv.backgroundColor = KBackGroundColor;
  19. tv.userInteractionEnabled = NO;
  20. tv.text = _desc;
  21. if (_desc.length == 0)
  22. {
  23. if ([_titleString isEqualToString:@"路线详情"]) {
  24. tv.text = @"暂无路线信息";
  25. }else{
  26. tv.text = @"暂无相关简介";
  27. }
  28. }
  29. [tv setFont:[UIFont scaleSize:Font17]];
  30. [self.view addSubview:tv];
  31. }
  32. - (void)didReceiveMemoryWarning {
  33. [super didReceiveMemoryWarning];
  34. // Dispose of any resources that can be recreated.
  35. }
  36. /*
  37. #pragma mark - Navigation
  38. // In a storyboard-based application, you will often want to do a little preparation before navigation
  39. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  40. // Get the new view controller using [segue destinationViewController].
  41. // Pass the selected object to the new view controller.
  42. }
  43. */
  44. @end