[英]three20 TTTextBarController semantic error ios 6
I'm having semantic issues with TTTextBarController.m 我在TTTextBarController.m中遇到语义问题
The error relates to 2 lines. 该错误与2行有关。 Both of which relate read:
两者都涉及:
Property 'viewController' not found on object of type UIView *
Happening on these lines 发生在这些线上
- (void)textEditorDidEndEditing:(TTTextEditor*)textEditor {
UIViewController* controller = self.view.viewController;
[controller.navigationItem setRightBarButtonItem:_previousRightBarButtonItem animated:YES];
TT_RELEASE_SAFELY(_previousRightBarButtonItem);
and here: 和这里:
(void)textEditorDidBeginEditing:(TTTextEditor*)textEditor {
[self retain];
_originTop = self.view.top;
UIViewController* controller = self.view.viewController;
_previousRightBarButtonItem = [controller.navigationItem.rightBarButtonItem retain];
How do I resolve this. 我该如何解决。 Any help would be greatly appreciated.
任何帮助将不胜感激。
I know it's not the answer you're looking for, but you really should think of stop using three20. 我知道这不是您要寻找的答案,但您确实应该考虑停止使用three20。 It's a very old library, and it's been officially discontinued .
这是一个非常古老的图书馆, 已经正式停产 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.