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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -