NSInteger definido como 0, mas retorna nil
Tenho um NSInteger na minha classe assim
In @interface:
NSInteger currentRow;
@property (assign) NSInteger currentRow;
In @implementation:
@synthesize currentRow;
Doing[self setCurrentRow:0]
parece funcionar bem, mas usando[self currentRow]
apenas retorna nulo por algum motivo, não sei por que. Ao usar pontos de interrupção, vejo que o valor paracurrentRow
é0
então está bem, mas não consigo recuperar o valor.