ipad - Issue with UITabBarViewController as master of UISplitViewController in iOS 8.3 -
for project i'm working on, i've put uitabbarviewcontroller master of uisplitviewcontroller in universal app running in ipad simulator, used work fine in ios 7.1 , ios 8.2 ios 8.3 crashes message:
could not load nib in bundle: 'nsbundle (loaded)' name 'z6l-hd-h3h-view-7sh-l5-cwr''
please notice if change simulator 1 of version 7.1 or 8.2 works ok, don't know i'm doing wrong or causing behavior.
here's example: https://github.com/aresdev/splitwithtabbar
thanks help.
here stack trace:
*** first throw call stack: ( 0 corefoundation 0x02004746 __exceptionpreprocess + 182 1 libobjc.a.dylib 0x004eea97 objc_exception_throw + 44 2 corefoundation 0x0200466d +[nsexception raise:format:] + 141 3 uikit 0x00a76e2f -[uinib instantiatewithowner:options:] + 1003 4 uikit 0x00891124 -[uiviewcontroller _loadviewfromnibnamed:bundle:] + 270 5 uikit 0x008918bb -[uiviewcontroller loadview] + 295 6 uikit 0x00891aef -[uiviewcontroller loadviewifrequired] + 78 7 uikit 0x00892095 -[uiviewcontroller view] + 35 8 uikit 0x008e1d2f -[uitabbarcontroller transitionfromviewcontroller:toviewcontroller:transition:shouldsetselected:] + 426 9 uikit 0x008e136f -[uitabbarcontroller transitionfromviewcontroller:toviewcontroller:] + 64 10 uikit 0x008dd52b -[uitabbarcontroller _setselectedviewcontroller:] + 339 11 uikit 0x008dd2e5 -[uitabbarcontroller setselectedindex:] + 115 12 uikit 0x008dce91 __51-[uitabbarcontroller _setviewcontrollers:animated:]_block_invoke394 + 43 13 uikit 0x007b6d4f +[uiview(animation) performwithoutanimation:] + 82 14 uikit 0x008dcd3d -[uitabbarcontroller _setviewcontrollers:animated:] + 3627 15 uikit 0x008db403 -[uitabbarcontroller _updatelayoutfortraitcollection:] + 302 16 uikit 0x008dae73 __80-[uitabbarcontroller willtransitiontotraitcollection:withtransitioncoordinator:]_block_invoke + 69 17 uikit 0x00c36107 -[_uiviewcontrollernullanimationtransitioncoordinator _applyblocks:releaseblocks:] + 198 18 uikit 0x00c35d9a -[_uiviewcontrollernullanimationtransitioncoordinator _runalongsideanimations] + 148 19 uikit 0x008af063 -[uiviewcontroller(uicontainerviewcontrollerprotectedmethods) setoverridetraitcollection:forchildviewcontroller:] + 399 20 uikit 0x00c1fa10 -[uisplitviewcontroller _setmasteroverridetraitcollectionactive:] + 127 21 uikit 0x00c1b35a -[uisplitviewcontroller initwithcoder:] + 112 22 uikit 0x00bfa92e uinibdecoderdecodeobjectforvalue + 739 23 uikit 0x00bfa643 -[uinibdecoder decodeobjectforkey:] + 371 24 uikit 0x00a77c1a -[uiruntimeconnection initwithcoder:] + 189 25 uikit 0x00bfa92e uinibdecoderdecodeobjectforvalue + 739 26 uikit 0x00bfab30 uinibdecoderdecodeobjectforvalue + 1253 27 uikit 0x00bfa643 -[uinibdecoder decodeobjectforkey:] + 371 28 uikit 0x00a76ed0 -[uinib instantiatewithowner:options:] + 1164 29 uikit 0x00d34185 -[uistoryboard instantiateviewcontrollerwithidentifier:] + 220 30 uikit 0x00d34301 -[uistoryboard instantiateinitialviewcontroller] + 74 31 uikit 0x0072c6fc -[uiapplication _loadmainstoryboardfilenamed:bundle:] + 79 32 uikit 0x0072c984 -[uiapplication _loadmaininterfacefile] + 245 33 uikit 0x0072b2f4 -[uiapplication _runwithmainscene:transitioncontext:completion:] + 1337 34 uikit 0x0074493e __84-[uiapplication _handleapplicationactivationwithscene:transitioncontext:completion:]_block_invoke + 59 35 uikit 0x0072a04a -[uiapplication workspacedidendtransaction:] + 155 36 frontboardservices 0x031c7c9e __37-[fbsworkspace clientendtransaction:]_block_invoke_2 + 71 37 frontboardservices 0x031c772f __40-[fbsworkspace _performdelegatecallout:]_block_invoke + 54 38 frontboardservices 0x031d9d7c __31-[fbsserialqueue performasync:]_block_invoke_2 + 30 39 corefoundation 0x01f26050 __cfrunloop_is_calling_out_to_a_block__ + 16 40 corefoundation 0x01f1b963 __cfrunloopdoblocks + 195 41 corefoundation 0x01f1b7bb __cfrunlooprun + 2715 42 corefoundation 0x01f1aa5b cfrunlooprunspecific + 443 43 corefoundation 0x01f1a88b cfrunloopruninmode + 123 44 uikit 0x00729a02 -[uiapplication _run] + 571 45 uikit 0x0072d106 uiapplicationmain + 1526 46 splitwithtabbar 0x0000beba main + 138 47 libdyld.dylib 0x02bf1ac9 start + 1 48 ??? 0x00000001 0x0 + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception
set item viewcontroller of uitabbarcontroller uinavigationcontroller rather uiviewcontroller
you can set mastercontroller of uisplitviewcontroller directly uitabbarcontroller.
its better set detailcontroller of uisplitviewcontroller uinavigationcontroller.
see attached pic