Added the autoResizingMask code to custom label setter.

This commit is contained in:
Steve Ross
2013-05-17 15:39:11 -07:00
parent 8b14772995
commit 69e8d585b4

View File

@@ -161,7 +161,9 @@ module ProMotion::MotionTable
### Catch any custom class labels ###
if data_cell[:cell_class]
data_cell.select{|k| k =~ /_label$/}.each_pair do |k, v|
table_cell.send(k).setText v
cell = table_cell.send(k)
cell.setText v
cell.autoresizingMask = UIViewAutoresizingFlexibleWidth
end
end