a nil test

This commit is contained in:
Stephan Toggweiler
2013-05-22 02:10:54 +02:00
parent e319cd3efb
commit db115bb131

View File

@@ -178,7 +178,7 @@ module ProMotion::MotionTable
table_cell.accessoryView = switch_view
end
if data_cell[:subtitle]
if data_cell[:subtitle] and table_cell.detailTextLabel
table_cell.detailTextLabel.text = data_cell[:subtitle]
table_cell.detailTextLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth
end