相关疑难解决方法(0)

以编程方式更改NSTextView的文本

我找不到任何与a中显示的文本值相关的参数NSTextView.我知道a NSTextView使用复杂的结构(有NSLayoutManager...等),但我找不到修改当前text值的有效方法.

macos cocoa objective-c nstextview

20
推荐指数
5
解决办法
2万
查看次数

iOS 7上的UITextview撤消中的奇怪崩溃

我收到了一堆崩溃报告,看起来很像下面这个范围的不同值.有时范围不是0-x,可以说是2-x

特定于应用程序的信息:*由于未捕获的异常终止应用程序\'NSRangeException \',原因:\'* - [NSBigMutableString substringWithRange:]:范围{0,69}超出范围; 字符串长度0 \'

Last Exception Backtrace:
0   CoreFoundation                      0x2e879e83 __exceptionPreprocess + 131
1   libobjc.A.dylib                     0x38bd66c7 objc_exception_throw + 38
2   CoreFoundation                      0x2e879dc5 +[NSException raise:format:] + 112
3   Foundation                          0x2f1a1bd1 -[NSString substringWithRange:] + 120
4   UIKit                               0x311b2815 -[NSTextStorage(UIKitUndoExtensions)     _undoRedoAttributedSubstringFromRange:] + 132
5   UIKit                               0x315d9679 -[_UITextUndoOperationTyping undoRedo] + 296
6   Foundation                          0x2f296453 -[_NSUndoStack popAndInvoke] + 250
7   Foundation                          0x2f2952ef -[NSUndoManager undoNestedGroup] + 454
8   UIKit                               0x3127a147 -[UIApplication alertView:clickedButtonAtIndex:] + 142
9   UIKit                               0x31216449 -[_UIModalItemsCoordinator _notifyDelegateModalItem:tappedButtonAtIndex:] + 144 …
Run Code Online (Sandbox Code Playgroud)

undo crash-reports uitextview ios ios7

7
推荐指数
1
解决办法
3176
查看次数

标签 统计

cocoa ×1

crash-reports ×1

ios ×1

ios7 ×1

macos ×1

nstextview ×1

objective-c ×1

uitextview ×1

undo ×1