Io uso questo codice per impostare le mie costanticostante intera significa 'non riduce in un intero'
// Constants.h
extern NSInteger const KNameIndex;
// Constants.m
NSInteger const KNameIndex = 0;
E in un'istruzione switch all'interno di un file che importa il file Constant.h ho questo:
switch (self.sectionFromParentTable) {
case KNameIndex:
self.types = self.facilityTypes;
break;
...
ottengo l'errore in fase di compilazione che leggere questo: "errore: l'etichetta caso non riduce ad una costante intera"
Tutte le idee che cosa potrebbe essere incasinato?
Nota che NSInteger è definito come int [typedef int NSInteger;] forse stai pensando a NSNumber? – epatel
Ah, hai ragione. Sono ancora molto lontano dall'essere fluente in Objective-C. – crashmstr