-(ibaction)button:(id)sender{ if (cardsinplay >= 16){ nsnumber *cardvalue = carsandvalue[14]; nsinteger *value = [cardvalue integervalue[;
from know should read nsnumber array , change nsinteger error.
incompatible integer pointer conversion initialization 'nsinteger*'(aka 'int*') expression of type 'nsinteger'(aka 'int*')
-[nsnumber integervalue]
returns nsinteger
, not pointer one.
nsinteger *value = [cardvalue integervalue];
should be
nsinteger value = [cardvalue integervalue];
Comments
Post a Comment