iOS 11 UITextField in UIToolBar grows horizontally if the text is too large to fit within available TextField width. BarButtonItems on left and right of the UITextField are pushed out of UIToolBar bounds.
| Originator: | ssk.mohan | ||
| Number: | rdar://33532472 | Date Originated: | July 26 2017 |
| Status: | open | Resolved: | |
| Product: | iOS | Product Version: | iOS 11 |
| Classification: | UI | Reproducible: | Always |
Issue is observed in iOS 11 beta 5. Issue can reproduced with below simple steps, - Create a single view application - Add UIToolBar instance to any UIViewController’s view in code - Set toolbar items array to BarButtonItem done style, BarButtonItem with custom view as UITextField and BarButtonItem done style - Set the text of UITextField to be very large - Run the app in iOS 11 iPad/iPad simulator Observed: UIBarButtonItems on the left and right are pushed outside of UIToolBar bounds Expected: UIBarButtonItems on left and right of UITextField should be visible. UITextField’s width should not occupy entire UIToolBar width when other UIBarButtonItems are present
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!