Per esempio quando si passa un messaggio value
a un NSInteger
un'istanza in questo modoCome convertire An NSInteger in un int?
[a value]
provoca un EXC_BAD_ACCESS.
Quindi, come convertire un NSInteger
in int
?
Se rilevante, vengono utilizzati solo numeri piccoli < 32.
Sembra che tu sia piuttosto confuso. [un valore] suggerisce che tu debba essere un oggetto, ma che è un NSInteger al momento. "Converting" in un int non risolverà il problema. –