Xcode 6.1: setting the separatorInset on a tableViewCell to zero in IB gets ignored

Originator:whakkee
Number:rdar://18999649 Date Originated:17-Nov-2014 11:27 AM
Status:Closed Resolved:
Product:Developer Tools Product Version:Xcode 6.1 (6A1052d)
Classification:UI/Usability Reproducible:Always
 
Summary:
If I set the separatorInset on a tableViewCell to zero in IB, it gets ignored.

Steps to Reproduce:
1. select a tableViewCell in IB
2. in the Attributes Inspector, change the Separator value from ‘Default Insets’ to ‘Custom Insets’
3. set left and / or right to 0
4. run on device or simulator

Expected Results:
I expect the separator insets to be 0. Since UIEdgeInsetsZero != 0, it *is* logical that it doesn’t work, if you set “cell.separatorInset = 0”, it crashes. But in IB there’s no possibility to set the value to UIEdgeInsetsZero. I think 0 should be treated as such, or there should be a possibility to fill UIEdgeInsetsZero in there. At the very least, a warning should be given when setting the value to 0.

Actual Results:
The value gets ignored, without a warning.

Regression:
Setting the separator inset using “cell.separatorInset = UIEdgeInsetsZero” in code does work, this is just about IB.

Notes:
-

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!