ios - Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle...' -
okay know error shows lot on here, because have read pretty much every 1 has been posted, seems pretty generic error can caused number of things. app crashes on first load with:
2014-06-20 00:36:01.044 shopping list[1877:60b] *** terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'could not load nib in bundle: 'nsbundle </var/mobile/applications/5c6e7163-019e-463a-8cdc-cfd01f563d67/ shopping list.app> (loaded)' name 'fpj-xv-ra6-view-vfe-sv-dfw'
now clarify, know class that's causing issue, , think know root cause of error, i'm interested know actual reason crash, rather rewriting class , moving on. background:
i'm using storyboard file rules out issues nib files. i have class named "shoppinglistviewcontroller" accident set when creating inherit "uiviewcontroller" rather "uitableviewcontroller" i changed header file effort right inheritance issue, changed....this line:
@interface shoppinglistviewcontroller : uiviewcontroller
to:
@interface shoppinglistviewcontroller : uitableviewcontroller
whenever effort include instance of shoppinglistviewcontroller in storyboard file, , have segue it, app crash immediately. no instances of controller, runs fine. so after googling how storyboarding works etc. i'm guessing happening xcode has tried generate nib file storyboard (fpj-xv-ra6-view-vfe-sv-dfw), after changing class of file, nib file no longer compatible code, supposed view controller? very dumbed downwards , poorly informed guess. i'm wondering in case best way of changing superclass class inherits in ios project without breaking stuff this? , there way can prepare without having rewrite class - "correct" way suppose?
ios objective-c xcode uistoryboard
No comments:
Post a Comment