UIBarButtonItem customView not resized
| Originator: | philippe.bernery | ||
| Number: | rdar://14723831 | Date Originated: | 08/13/2013 |
| Status: | Insufficient information | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.1 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: When putting a UIBarButtonItem with a customView in a left or right bar button item of a navigation bar, the item is not resized to the available space. Steps to Reproduce: - Create a UIBarButtonItem with a custom view. The custom view is a UIView with a UILabel inside for instance. Both have the autoresizingMask = UIViewAutoresizingFlexibleWidth. - Put a long text that will overstep the navigation bar width, resize the view to fit the text - Set the leftBarButtonItem of a navigationItem of a UIViewController to this UIBarButtonItem Expected Results: - The custom view should be resized to the available space for the left bar button item Actual Results: - The custom view is not resized
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!