UIBarButtonItem placement 2pt too low

Originator:alex
Number:rdar://16856787 Date Originated:8/5/2014
Status:Open Resolved:No
Product:iOS SDK Product Version:7.1.1
Classification:UI Reproducible:Always
 
When adding a UIBarButtonItem to a UINavigationBar in `viewDidAppear`, it is displayed 2pt lower than the title. If it is added in `viewDidLoad`, its position is correct.

Steps to Reproduce:
1. Create a UIViewController instance inside a UINavigationController
2. Ensure the view controller has a title
3. Add a UIBarButtonItem in `viewDidAppear`

Expected Results:
The UIBarButtonItem title should be vertically aligned with the navigation bar title

Actual Results:
The UIBarButtonItem title is 2pt lower than the navigation bar title

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!