Hi there, the two lines of code I’m curious about on pg 428 are:
cell.textLabel!.text = someString
cell.detailTextLabel!.text = anotherString
I understand the reason we force unwrap textLabel
and detailTextLabel
, however, I was hoping someone could shed some light as to why we do not need to unwrap text
as well? When I inspect it, it says it returns an optional String.
So why do we not need something like:
cell.textLabel!.text! = someString
cell.detailTextLabel!.text! = anotherString