Converting a navbar to a tabbar app

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-05-10T13:09:56Z Indexed on 2010/05/10 13:14 UTC
Read the original article Hit count: 266

Hey guys,

I was wondering how to convert a NavigationController style app into a TabBarcontroller style app. I changed my mainwindow to not contain a navigationcontroller anymore (but a tabbarcontroller instead) and my delegate also appropiatly, but when I launch the app something still thinks I want a navigationController:

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key navigationController.'

Stack trace:

#0  0x020fa004 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___
#1  0x96fc0509 in objc_exception_throw
#2  0x020ee1c1 in -[NSException raise]
#3  0x000d8a78 in _NSSetUsingKeyValueSetter
#4  0x000d84c5 in -[NSObject(NSKeyValueCoding) setValue:forKey:]
#5  0x004fb4c8 in -[UIRuntimeOutletConnection connect]
#6  0x020af92f in -[NSArray makeObjectsPerformSelector:]
#7  0x004f9f7f in -[UINib instantiateWithOptions:owner:loadingResourcesFromBundle:]
#8  0x004fbfcb in -[NSBundle(NSBundleAdditions) loadNibNamed:owner:options:]
#9  0x0033b0a6 in -[UIApplication _loadMainNibFile]
#10 0x0034482a in -[UIApplication _runWithURL:sourceBundleID:]
#11 0x00341b88 in -[UIApplication handleEvent:withNewEvent:]
#12 0x0033d6d3 in -[UIApplication sendEvent:]
#13 0x003440b5 in _UIApplicationHandleEvent
#14 0x0265aed1 in PurpleEventCallback
#15 0x02092b80 in CFRunLoopRunSpecific
#16 0x02091c48 in CFRunLoopRunInMode
#17 0x0033be69 in -[UIApplication _run]
#18 0x00345003 in UIApplicationMain
#19 0x00002ec8 in main at main.m:14

Where can I specify the app is a tabbarcontrolled app, instead of a navigationbarcontrolled app?

Thanks in advance,

© Stack Overflow or respective owner

Related posts about iphone

Related posts about interface-builder