mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-04 19:45:35 +08:00
Added the autoResizingMask code to custom label setter.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user