Separator Insets of UITableViewCell created in IB do not reverse for right-to-left languages
| Originator: | jonathan | ||
| Number: | rdar://15583652 | Date Originated: | 04-Dec-2013 03:34 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7.0 |
| Classification: | Reproducible: | Yes |
Summary: We have a storyboard with base localization for English, and are also localizing the app for Arabic. We are taking advantage of right-to-left layout swapping when using autolayout. Steps to Reproduce: 1. Create a UITableViewController in a storyboard. 2. Create a prototype cell with the default Separator Insets. 3. In code, display some cells of the prototype cell type. Expected Results: The Separator Inset should swap left and right values for right-to-left languages, as currently happens for the layout of the default table section header views. Actual Results: The Separator Inset produces the same result for Arabic as for English (see attached screenshots). Version: iOS 7.0 Notes: This would not be such a problem if the section header textLabel did not rely on the separator inset for positioning, as I could simply swap the left/right values myself in viewDidLoad. However, viewDidLoad is too late for this not to affect label positions in subsequent section header views. Perhaps you could update the inspector options so that instead of specifying left/right for separator insets, you instead specified leading/trailing and updated the behaviour to reflect this?
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!