UIButton doesn't respect UIViewContentMode

Originator:heath.borders
Number:rdar://14931637 Date Originated:10-Sep-2013 03:13 PM
Status:Open Resolved:
Product:iOS SDK Product Version:Xcode Version 5.0 (5A1412)
Classification:Serious Bug Reproducible:Always
 
Summary:
Setting UIButton.contentMode doesn't change the title's alignment. Setting UIButton.contentHorizontalAlignment works. Why are these separate? It seems like UIButton should respect UIView.contentMode

Steps to Reproduce:
Run the attached project

Expected Results:
The buttons should left-align or top-align

Actual Results:
The buttons don't left-align or top align.

Version:
Version 5.0 (5A11386k)

Project:
https://github.com/hborders/14931637_UIViewContentMode_vs_UIControlAlignment

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!