three20 TTTextBarController语义错误ios 6

时间:2013-07-21 22:13:59

标签: ios three20

我在TTTextBarController.m

中遇到语义问题

错误与2行有关。两者都涉及:

Property 'viewController' not found on object of type UIView *

在这些行上发生

 - (void)textEditorDidEndEditing:(TTTextEditor*)textEditor {
  UIViewController* controller = self.view.viewController;
  [controller.navigationItem setRightBarButtonItem:_previousRightBarButtonItem animated:YES];
  TT_RELEASE_SAFELY(_previousRightBarButtonItem);

在这里:

    (void)textEditorDidBeginEditing:(TTTextEditor*)textEditor {
  [self retain];

  _originTop = self.view.top;

  UIViewController* controller = self.view.viewController;
  _previousRightBarButtonItem = [controller.navigationItem.rightBarButtonItem retain];

我该如何解决这个问题。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

我知道这不是你要找的答案,但你真的应该想到停止使用three20。这是一个非常古老的图书馆,it's been officially discontinued