iphone - SIGTRAP 在 iOS 6.1.3 上选择特定的 UITableViewCell

标签 iphone ios ios6

我有一个 UITableView,其中的单元格分组在一个部分中。当我选择特定的 UITableViewCell 时,应用程序崩溃。当我选择其他单元格时它效果很好。 它适用于除 iOS 6.1.3 之外的所有 iOS 版本。

来自 Crittercism 的堆栈跟踪

Threads
_________________________________
Thread: Unknown Name (Crashed)
0     CoreFoundation                        0x319b268a CFRelease + 18
1     APP_NAME                              0x000fdd3b 0x000b9000 + 281915
2     APP_NAME                              0x000fe7d7 0x000b9000 + 284631
3     UIKit                                 0x3389f579 -[UIViewController loadViewIfRequired] + 365
4     UIKit                                 0x338f41f7 -[UIViewController contentScrollView] + 27
5     UIKit                                 0x338f413d -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 29
6     UIKit                                 0x338f4021 -[UINavigationController _layoutViewController:] + 33
7     UIKit                                 0x338f3f4d -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 273
8     UIKit                                 0x338f3699 -[UINavigationController _startTransition:fromViewController:toViewController:] + 65
9     UIKit                                 0x338f3581 -[UINavigationController _startDeferredTransitionIfNeeded:] + 325
10   UIKit                                  0x338e1b5b -[UINavigationController pushViewController:transition:forceImmediate:] + 859
11   UIKit                                  0x338e17fb -[UINavigationController pushViewController:animated:] + 39
12   APP_NAME                               0x000e8d81 0x000b9000 + 195969
13   UIKit                                  0x3394231d -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 877
14   UIKit                                  0x339c4da9 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 157
15   Foundation                             0x32380657 __NSFireDelayedPerform + 451
16   CoreFoundation                         0x31a46857 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 15
17   CoreFoundation                         0x31a46503 __CFRunLoopDoTimer + 275
18   CoreFoundation                         0x31a45177 __CFRunLoopRun + 1231
19   CoreFoundation                         0x319b823d CFRunLoopRunSpecific + 357
20   CoreFoundation                         0x319b80c9 CFRunLoopRunInMode + 105
21   GraphicsServices                       0x3559733b GSEventRunModal + 75
22   UIKit                                  0x338d42b9 UIApplicationMain + 1121
23   APP_NAME                               0x000e996b 0x000b9000 + 199019

名为 didSelectRowAtIndexPath 的代码是(没什么特别的)。

 else if(indexPath.section==0 && indexPath.row==3) {
        [self performSegueWithIdentifier:@"SomeIdentifier" sender:self];
    }

最佳答案

问题在于加载新的 View Controller - 你有符号化的崩溃日志吗?答案在于检查堆栈跟踪中 CFRelease 下面的两个方法。

关于iphone - SIGTRAP 在 iOS 6.1.3 上选择特定的 UITableViewCell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15641071/

相关文章:

iphone - Xcode 4 Interface Builder 性能缓慢

ios - Jenkins iOS 使用凭据和开发者资料构建

ios - ios 6.0+ 上 itms 的用户代理是什么?

iphone - 如何在 Facebook 分享期间显示应用程序名称代替 "ios"

iphone - 为什么带有 iOS 6.1.3 的 iPhone 4 无法连接 xcode 4.5 进行测试?

jquery - iOS 上的 Safari 无法 Ajax 上传某些图像文件 : "Cannot connect to server" (but the website works ok)

ios - 图像是否会在 iOS 更新时从本地文件系统中删除?

ios - 对相同的尺寸类别和方向使用不同的字体

ios - 合并包含 NSDictionary 的 NSArray

iphone - 查找父 UIActionSheet