cuappdev/ithaca-transit-ios

Standardize tableViewCell layout

Omarrasheed opened this issue · 0 comments

In several TableViewCell files, we often have our entire setup for the cell in

override func layoutSubviews() { ... }

and explicitly call cell.layoutSubview() in the cellForRowAt function in our viewControllers.

Instead we need to move the setup for the static parts of the cell (those not relying on other objects like a specified place or bus stop) into the override init and create a configure(for :obj) function instead to setup our cell