Unable to pushViewController for subview

后端 未结 6 1820
北荒
北荒 2021-01-03 08:12

I have a UINavigationController and I have seperate UIViews that I switch between using a UISegmentControl. On switching the views, I add the view as a subview to my navigat

6条回答
  •  囚心锁ツ
    2021-01-03 09:10

    It is not entirely clear to me what your view hierarchy is, but in general if your navigation controllers view is not the first subview of a window or an element of one of Apple's collection views (either another navigation view controller's content view or a tab controller's content view) it won't work correctly.

提交回复
热议问题