主细节视图控制器第二次崩溃到细节视图

时间:2013-11-19 17:27:20

标签: objective-c ipad ios7

我有一个带有主/细分割视图控制器的iOS 7应用程序。它第一次进入细节视图时它很好,第二次崩溃。我已经尝试使用Zomibies来找到解除分配内存的问题,它给了我UISplitViewController_CalculateDelegateHiddenMasterOrientation,它在UI Kit中不是我的代码。如果在详细视图后旋转,则会出现同样的问题。我没有代码,但详细视图中的标准Apple代码处理SplitView 处于纵向模式后,当处于详细视图时,弹出按钮消失可能相关 该应用程序已完成并在iPhone上运行良好,谢谢

    - (void)viewDidLoad
{
[super viewDidLoad];
NSLog(@"This Log Is On THe Detail View");
[self setNeedsStatusBarAppearanceUpdate];
[self preferredStatusBarStyle];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

[[NSNotificationCenter defaultCenter] postNotificationName:@"reloadTableBetween"    object:nil];

if (selectedSection == 10) {
    [starButton setHidden:YES];
}
NSLog(@"WebView Size = %i",[[webView   stringByEvaluatingJavaScriptFromString:@"document.getElementsByTagName('body')  [0].style.webkitTextSize"]intValue]);
textFontSize = 100;



detailedItem = [[NSMutableDictionary alloc] init];

[detailedItem setObject:[NSNumber numberWithInt:selectedItem] forKey:@"item"];
[detailedItem setObject:[NSNumber numberWithInt:selectedSection] forKey:@"section"];

[navigationBar setBarStyle:UIBarStyleBlackTranslucent];
[self configureView];
if (comingFromiPad) {
    NSLog(@"comingFromiPad");
    [self.masterPopoverController dismissPopoverAnimated:YES];
}

if ([favorites containsObject:detailedItem]) {
    [starButton setBackgroundImage:[UIImage imageNamed:@"starWhiteFilled.png"]      `   forState:UIControlStateNormal];`
    starTapped = YES; //FAVORITED
} else {
    [starButton setBackgroundImage:[UIImage imageNamed:@"starWhiteOutline.png"]   forState:UIControlStateNormal];//UNFAVORITED
    starTapped = NO;
}

NSLog(@"Detail viewDidLoad selectedItem = %i",selectedItem);
NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults];
favorites = [[standardUserDefaults objectForKey:@"favorites"] mutableCopy];

}

这是从详细信息开始,第二次没有到达

这是崩溃日志           事件标识符:166E3644-A3E8-459B-A3C7-729C8639D327     CrashReporter Key:03391171a6c2809e94f6bee3f4adf948a4986bce     硬件型号:iPad3,1     进程:宪法[733]     路径:/ var / mobile / Applications / 3147DC34-7536-4843-B920- 7DA4E750E820 / Constitution.app / Constitution     标识符:net.multieducator.Constitution     版本:1.0(1.0)     代码类型:ARM(Native)     父流程:launchd [1]

Date/Time:           2013-11-19 12:12:48.502 -0500
OS Version:          iOS 7.0.3 (11B511)
Report Version:      104

 Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
 Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000d
Triggered by Thread:  0

Thread 0 Crashed:
 0   libobjc.A.dylib                0x3a00bb26 objc_msgSend + 6
  1   UIKit                             0x32426cd0 -[UISplitViewController    _calculateDelegateHiddenMasterOrientations] + 56
2   UIKit                           0x32428906 -[UISplitViewController     setViewControllers:] + 1390
   UIKit                            0x324c95ca -[UIStoryboardReplaceSegue perform] + 686
4   Constitution                    0x00023490 -[BetweenViewController    tableView:didSelectRowAtIndexPath:] (BetweenViewController.m:415)
5   UIKit                           0x321318b6 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1074
6   UIKit                           0x321e4f76 -[UITableView      _userSelectRowAtPendingSelectionIndexPath:] + 210
 7   UIKit                          0x32094fb6 _applyBlockToCFArrayCopiedToStack + 314
 8   UIKit                          0x3200d1ee _afterCACommitHandler + 426
 9   CoreFoundation                 0x2f86d1ca         __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
10  CoreFoundation                  0x2f86ab6c __CFRunLoopDoObservers + 280
11  CoreFoundation                  0x2f86aeae __CFRunLoopRun + 726
12  CoreFoundation                  0x2f7d5c22 CFRunLoopRunSpecific + 518
13  CoreFoundation                  0x2f7d5a06 CFRunLoopRunInMode + 102
14  GraphicsServices                0x344c927e GSEventRunModal + 134
15  UIKit                           0x32079044 UIApplicationMain + 1132
16  Constitution                    0x0001bf1a main (main.m:16)
17  libdyld.dylib                   0x3a518ab4 start + 0

0 个答案:

没有答案
相关问题