ios - UIViewControllerHierarchyInconsistency issue in ios6 for tabbarcontroller -
i have app working fine in ios5 when switch ios6, crashing due uiviewcontrollerhierarchyinconsistency.
the error looks this:
uiviewcontrollerhierarchyinconsistency', reason: 'a view can associated @ 1 view controller @ time! view <uilayoutcontainerview: 0xa148de0; frame = (0 0; 320 480); autoresize = w+h; layer = <calayer: 0xa148ea0>> associated <uitabbarcontroller: 0xa64af30>. clear association before associating view <lkviewcontroller: 0xa33faa0>.' i have looked @ of solutions on stackoverflow , tell me delete viewcontrollers. when delete tabbarcontroller, view not appear correctly.
my xib file looks this:
need guidance on this..thanks...
edit:
the crash comes in line in lkviewcontroller:
self.view = m_tabbarcontroller.view; when m_tabbarcontroller uitabbarcontroller.
changing
self.view = m_tabbarcontroller.view; to
[self.view addsubview:m_tabbarcontroller.view]; will solve issue...
ios ios6 uitabbarcontroller
No comments:
Post a Comment