ReplyDetailController.m 980 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // ReplyDetailController.m
  3. // TheoryNetwork
  4. //
  5. // Created by tederen on 2019/9/30.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "ReplyDetailController.h"
  9. #import "CommentModel.h"
  10. @interface ReplyDetailController () {
  11. CommentModel *_currentModel;
  12. }
  13. @property (nonatomic, strong) TDNavigationBar *navigationBar;
  14. @property (nonatomic, strong) TDTableView *tableView;
  15. @end
  16. @implementation ReplyDetailController
  17. - (void)viewDidLoad {
  18. [super viewDidLoad];
  19. // Do any additional setup after loading the view.
  20. [self.view addSubview:self.navigationBar];
  21. }
  22. - (void)loadCurrentCommentModel:(CommentModel *)model {
  23. _currentModel = model;
  24. }
  25. #pragma mark - setter
  26. - (TDNavigationBar *)navigationBar {
  27. if (!_navigationBar) {
  28. _navigationBar = [[TDNavigationBar alloc] initNavigationBar];
  29. [_navigationBar setTitle:[NSString stringWithFormat:@"%@条回复", _currentModel.replyTimes]];
  30. }
  31. return _navigationBar;
  32. }
  33. @end