NSInteger establecido en 0 pero devuelve nil
Tengo un NSInteger en mi clase así que
In @interface:
NSInteger currentRow;
@property (assign) NSInteger currentRow;
In @implementation:
@synthesize currentRow;
Haciendo[self setCurrentRow:0]
parece funcionar bien, pero usando[self currentRow]
simplemente devuelve nulo por alguna razón, no estoy seguro de por qué. Al usar puntos de interrupción, puedo ver que el valor decurrentRow
es0
por lo que se ha configurado bien, pero no puedo recuperar el valor.