Why can’t UIImagePickerController be pushed into navigation stack?

后端 未结 1 886
心在旅途
心在旅途 2021-01-04 00:43

When using pushViewController to push UIImagePickerController:

[self.navigationController pushViewController:pvc animated:YES];
         


        
1条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 01:37

    Apple does not allow stacking of navigation bars. Since the image picker has its own navigation bar, it cannot be placed in a navigation stack. The result would cause user confusion since there would be two bars, two sets of navigation items, two titles, etc.

    0 讨论(0)
提交回复
热议问题