我遇到了 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];
我该如何解决这个问题。任何帮助将不胜感激。