It appears to be an issue when setting the hidesBackButton
property during view controller transitions (For which viewWillAppear
is a part of that process). I didn't notice this issue in iOS6, so I believe it's to do with the way iOS7 handles transitions and rendering.
The solution for me was ensuring the hidesBackButton
had the correct state at initialization. So you'll need to set the property value within - (id)init
, or some variation thereof.
If this isn't possible, then the best I could do was set the state in viewDidAppear
instead of viewWillAppear
, ensuring it's animated so it's not too jarring for the user.
For example:
[self.navigationItem setHidesBackButton:YES animated:YES];