0
votes

I have spent hours on this wired problem.

The scenario is I have push a new chatting view controller to the root navigation controller.

Then I customized the navigation bar item in the viewdidload method.

Everything works fine.

Then I present a image picker view which enables the image upload function.

And dismiss that picker view, which was presented as modal view.

After the picker view dismissed, the customized left navigation bar button disappeared.

The navigation bar appearance is the same as the root navigation bar but not the customized appearance is the current view controller.

Because the some pieces of the work includes the third party SDK, so I am not able to directly change the UIPickerView in order to detect the dismiss event and change the navigation bar appearance.

Can anyone helps? Thank you so much.

1
Have you present UIImagePicker with UINavigationBarController?VRAwesome

1 Answers

0
votes

You should removed customised the navigation bar item on viewWillDisappear and add this viewWillAppear instead of viewDidLoad