View Single Post
  #1 (permalink)  
Old August 14th, 2014, 12:26 AM
zhy1990 zhy1990 is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Chapter2

i have problems with chapter2, i tried to copy the codes from the sample codes, and even the database after i failed so many times. everything is the same. but in the

Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (!self.detailViewController) {
        self.detailViewController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil];
    }
    
    self.detailViewController.detailItem = [self.products objectAtIndex:[indexPath row]];
    [self.navigationController pushViewController:self.detailViewController animated:YES];
}
part i have problems, as i select a widget, i got an error message as:


2014-08-13 23:23:37.644 Catalog[4880:60b] Cannot find executable for CFBundle 0x8e39470 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2014-08-13 23:23:37.719 Catalog[4880:60b] Opening Database
2014-08-13 23:23:40.433 Catalog[4880:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/chh/Library/Application Support/iPhone Simulator/7.1/Applications/D4E29D47-2D05-4F2A-AD43-3C6BA232BF8B/Catalog.app> (loaded)' with name 'DetailViewController''
*** First throw call stack:
(
0 CoreFoundation 0x018dc1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x0165b8e5 objc_exception_throw + 44
2 CoreFoundation 0x018dbfbb +[NSException raise:format:] + 139
3 UIKit 0x005d0b7b -[UINib instantiateWithOwner:options:] + 951
4 UIKit 0x004396f5 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
5 UIKit 0x00439e9d -[UIViewController loadView] + 302
6 UIKit 0x0043a0d3 -[UIViewController loadViewIfRequired] + 78
7 UIKit 0x0043a5d9 -[UIViewController view] + 35
8 UIKit 0x00454942 -[UINavigationController _startCustomTransition:] + 778
9 UIKit 0x004618f7 -[UINavigationController _startDeferredTransitionIfNeeded:] + 688
10 UIKit 0x004624e9 -[UINavigationController __viewWillLayoutSubviews] + 57
11 UIKit 0x005a30d1 -[UILayoutContainerView layoutSubviews] + 213
12 UIKit 0x0e46021b -[UILayoutContainerViewAccessibility(SafeCategory) layoutSubviews] + 50
13 UIKit 0x0038a964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
14 libobjc.A.dylib 0x0166d82b -[NSObject performSelector:withObject:] + 70
15 QuartzCore 0x03d4745a -[CALayer layoutSublayers] + 148
16 QuartzCore 0x03d3b244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
17 QuartzCore 0x03d3b0b0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11T ransactionE + 26
18 QuartzCore 0x03ca17fa _ZN2CA7Context18commit_transactionEPNS_11Transacti onE + 294
19 QuartzCore 0x03ca2b85 _ZN2CA11Transaction6commitEv + 393
20 QuartzCore 0x03ca3258 _ZN2CA11Transaction17observer_callbackEP19__CFRunL oopObservermPv + 92
21 CoreFoundation 0x018a436e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK _FUNCTION__ + 30
22 CoreFoundation 0x018a42bf __CFRunLoopDoObservers + 399
23 CoreFoundation 0x01882254 __CFRunLoopRun + 1076
24 CoreFoundation 0x018819d3 CFRunLoopRunSpecific + 467
25 CoreFoundation 0x018817eb CFRunLoopRunInMode + 123
26 GraphicsServices 0x038d05ee GSEventRunModal + 192
27 GraphicsServices 0x038d042b GSEventRun + 104
28 UIKit 0x0031bf9b UIApplicationMain + 1225
29 Catalog 0x0000480d main + 141
30 libdyld.dylib 0x01e25701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

can anyone help me?

thank you.
Reply With Quote