Working on a tableview who has cells build in IB. The cells use some custom UITextFields. The UITextFields have an optional UIImage property that should be nil when the controller loads.

I'm doing a check for nil and it keeps producing false, even though the object is nil.

(lldb) po icon
nil

(lldb) po icon == nil
false

What's interesting is for primitive types in the same textField, I get the expected behavior.

(lldb) po icon4
nil

(lldb) po icon4 == nil
true

I'm evaluating at the Texfields init, so there's now much else happening in this textfield.

Is there anything obvious here I'm missing?

Related posts

Recent Viewed