Here is the code
[self presentViewController:viewController animated:YES completion:nil];
viewController
is a UIImagePickerController
When I presented in viewController
, navigationbar
title shifted.
Please check the image.
Does anyone know how can I fix it?
Using the following method to customize and change navigation bar button
For more info seen the following link: Link
You need to give a constraint to titleView, from iOS11 navigation bar is playing with constraint instead of frames like before so,
and use this as below:
Hope this helps!