In some cases, the layoutSubviews of TableViewCellModule gets called before its data_cell instance variable has been set. As a result, layoutSubviews will raise an exception when trying to access methods of data_cell.
This change checks that data_cell is truthy before proceeding.
(Using RubyMotion 4.22 with iOS 10.2 Simulator and iOS 10.3.3 on device.)
In some cases, the
layoutSubviews
ofTableViewCellModule
gets called before itsdata_cell
instance variable has been set. As a result,layoutSubviews
will raise an exception when trying to access methods ofdata_cell
.This change checks that
data_cell
is truthy before proceeding.(Using RubyMotion 4.22 with iOS 10.2 Simulator and iOS 10.3.3 on device.)