iphone - use if with NSinteger? -
i want use nsinteger variable *strength in code if condition it's not work.. :(
if(strength == 11){ } how can use if nsinteger*
nsinteger primitive value type; don't need use pointers. declaration should read
nsinteger strength; and not
nsinteger *strength; however if do need use pointer nsinteger (that is, nsinteger *) reason, need dereference pointer value:
if (*strength == 11) { } but see, don't think case.
Comments
Post a Comment