iPhone应用程序在-[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]崩溃 [英] iphone app crash at -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]

查看:140
本文介绍了iPhone应用程序在-[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在-[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]崩溃,没有任何跟踪引用我们的应用程序,任何人都可以告诉我这是什么问题. 在ios7系统上,大约有500次崩溃,其中99%是崩溃.

I get crash at -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] without any trace refer to our app,could any one tell me what's the problem. There are about 500 crashes with 99% on the ios7 System.

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:是

@Umesh Kumar: YES

最后,事实证明它的导航令人困惑. 这是详细信息:

Finally, it turns out that its the navigation stacks confusion. Here is the detail:

  1. 我们都知道默认情况下可以同时执行两个或多个按钮动作.(exclusiveTouch=NO)
  2. 有时,当粘贴控制器中的按钮时,这将导致导航键推到下一个控制器,但是人们可能会粘贴导航条左侧的后退按钮,这只会弹出控制器.这将导致导航堆栈混乱.您会看到控制器被推入或弹出来确实很奇怪.
  3. 发生这种情况时,总会发生很多奇怪的崩溃,包括我上面所想的崩溃.
  4. 请注意,根据我的经验,这仅发生在IOS 7上,而这些崩溃也仅发生在IOS 7上.
  5. 因此,我们需要设置button.exclusiveTouch = YES.但是,确实,我真的不知道为什么仅在iOS 7上会发生这种情况.
  1. We all know two or more buttons action can be performed at the same time by default.(exclusiveTouch=NO)
  2. Sometimes, when a button in you controller be taped which will cause the nav to push to next controller, but people may taped the back button on the left of the navbar which will simply pop the controller. This will cause the navigation stacks confusion. You will see the controller pushed in or poped back really strange.
  3. When this happens, there will always be many strange crashes, include the crash I figured above.
  4. Note that, According to my experience, This happens on IOS 7 only, and these crashes only happens on IOS 7 too.
  5. So, we need to set button.exclusiveTouch = YES.But indeed, i realy do not know why this happens only on IOS 7.

这篇关于iPhone应用程序在-[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆