iphone应用程序崩溃 –

我碰到-[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]没有任何跟踪指向我们的应用程序,有没有人可以告诉我什么问题。 在ios7系统上有大约500次崩溃,99%。

 Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x397e1b26 objc_msgSend + 5 1 UIKit 0x31c358bb -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1078 2 UIKit 0x31ce8f7b -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 214 3 UIKit 0x31b98fb9 _applyBlockToCFArrayCopiedToStack + 316 4 UIKit 0x31b111f3 _afterCACommitHandler + 430 5 CoreFoundation 0x2f3711cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20 6 CoreFoundation 0x2f36eb71 __CFRunLoopDoObservers + 284 7 CoreFoundation 0x2f36eeb3 __CFRunLoopRun + 730 8 CoreFoundation 0x2f2d9c27 CFRunLoopRunSpecific + 522 9 CoreFoundation 0x2f2d9a0b CFRunLoopRunInMode + 106 10 GraphicsServices 0x34000283 GSEventRunModal + 138 11 UIKit 0x31b7d049 UIApplicationMain + 1136 12 MyApp 0x0004e813 main (main.m:16) 

@Umesh Kumar:是的

最后,事实certificate,它的导航堆栈混淆。 这里是细节:

  1. 我们都知道两个或多个button的动作可以默认同时执行( exclusiveTouch=NO
  2. 有时候,当你控制器中的一个button被录音,导致导航推到下一个控制器,但人们可能会录制导航栏左侧的后退button,这将简单地popup控制器。 这会导致导航堆栈混淆。 你会看到控制器被推入或回复真的很奇怪。
  3. 发生这种情况时,总会出现很多奇怪的崩溃,包括上面我想到的崩溃。
  4. 请注意,据我的经验,这只发生在IOS 7上,而这些崩溃也只发生在IOS 7上。
  5. 所以,我们需要设置button.exclusiveTouch = YES 。但的确,我真的不知道为什么只发生在IOS 7上。