Di solito, ho visto il codice che di dichiarare costanti era proprio come questo:C'è qualche differenza tra "statico NSInteger const" e "statico const NSInteger"?
static const NSInteger kNum = 1;
static NSString * const kStr = @"A";
so perché const
dovrebbe essere scritto dietro NSString *
, ma non sono sicuro se static NSInteger const kNum = 1;
e static const NSInteger kNum = 1;
sono gli stessi.
C'è qualche differenza tra static NSInteger const
e static const NSInteger
?