摇晃以撤销崩溃(Shake Undo)

崩溃堆栈信息:

-[NSTextStorage(UIKitUndoExtensions) _undoRedoAttributedSubstringFromRange:] + 156

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000 at 0x0000000000000000
Crashed Thread:  0

Application Specific Information:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSBigMutableString substringWithRange:]: Range {0, 61} out of bounds; string length 10
UserInfo:(null)'

Thread 0 Crashed:
0   CoreFoundation                  __exceptionPreprocess + 124
1   libobjc.A.dylib                 objc_exception_throw + 56
2   CoreFoundation                  -[NSException initWithCoder:] + 0
3   Foundation                      -[NSString substringWithRange:] + 140
4   UIKit                           -[NSTextStorage(UIKitUndoExtensions) _undoRedoAttributedSubstringFromRange:] + 156
5   UIKit                           -[_UITextUndoOperationReplace undoRedo] + 320
6   Foundation                      -[_NSUndoStack popAndInvoke] + 280
7   Foundation                      -[NSUndoManager undoNestedGroup] + 416
8   UIKit                           __58-[UIApplication _showEditAlertViewWithUndoManager:window:]_block_invoke.2492 + 32
9   UIKit                           -[UIAlertController _invokeHandlersForAction:] + 108
10  UIKit                           __103-[UIAlertController _dismissAnimated:triggeringAction:triggeredByPopoverDimmingView:dismissCompletion:]_block_invoke.459 + 28
11  UIKit                           -[UIPresentationController transitionDidFinish:] + 1320
12  UIKit                           __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 188
13  UIKit                           -[_UIViewControllerTransitionContext completeTransition:] + 116
14  UIKit                           -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 764
15  UIKit                           -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 312
16  UIKit                           -[UIViewAnimationState animationDidStop:finished:] + 296
17  UIKit                           -[UIViewAnimationState animationDidStop:finished:] + 456
18  QuartzCore                      CA::Layer::run_animation_callbacks(void*) + 284
复制代码

复现步骤:

  • 头条 V6.6.5

  • 微信V6.6.6

  • QQV7.5.8.422

修复方式

UIApplicationapplicationSupportsShakeToEdit属性关掉即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值