UITextView can not correctly handle rotation
| Originator: | an00na | ||
| Number: | rdar://28364732 | Date Originated: | 19-Sep-2016 11:06 AM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 10.0 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: UITextView can not correctly handle rotation because it layouts subviews using its frame instead of bounds. When transform is not identity frame is unusable, quoted from doc: “If the transform property is not the identity transform, the value of this property is undefined and therefore should be ignored.” Steps to Reproduce: 1. Launch sample app. 2. Activate text view. 3. Input text. 4. See the text view’s content does not fit its bounds 5. Read the console logs to see the mismatch of between text view and its _UITextContainerView. Code: https://cloudup.com/cvygAqlgCds Notes: I believe it is a very old bug. People are discussing it since 2011: http://stackoverflow.com/questions/6479727/applying-transform-to-uitextview-prevent-content-resizing
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!