I have a project which was build in Xcode 8.2
and now when I run it using Xcode 9.2
. I am facing problems with the custom navigation title
and bar buttons
in the view controllers
. In my storyboard
I have a View Controller
and on its Navigation bar
I have a custom navigation view
with a label
used as the navigation title
.
Since we cannot add constraints
on the navigation view
, I have given autolayout
for both the view
and label
. Now when I run the project, the custom navigation title
has disappeared. So I opened the storyboard
to check what really happened, I was shocked to see that navigation view's origin.y
value is changed to some other value, like -44, -88,
etc. Now I edited the origin.y value
, saved and run the project, but still the view was not seen. So now when I checked back in the storyboard
the frame of the view was changed to some other value. I tried creating new custom navigation view, but no luck. This keeps happening and I am really worried. I really appreciate if you guys can give me some information on this issue.
Click to show screenshot of custom view in the navigation bar