mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-02 06:49:45 +08:00
a nil test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user