objective c - Equality comparison result unused in iOS 9 -
i moved ios 9 , noticed new warnings on old code:
description.becomefirstresponder == yes;
display warning 'equality comparison result unused'
how can handle warning.
thank you!
you meant assign, in:
description.becomefirstresponder = yes; ^
(==
equality comparison operator).
the compiler complaining result of comparison wasn't being used, in:
if (description.becomefirstresponder == yes) { /* */ }
Comments
Post a Comment