Vote count:
0
When I try to place a unicode character in an NS_ENUM list I receive a warning:
NSLog(@"H\u2082O");
typedef NS_ENUM(NSInteger, Gas) {
Ar,
CO,
NO\u2082,
H\u2082O
};
Note that H\u2082O and NO\u2082 represent H2O and NO2 where 2 is a subscript. This works fine in an NSString but it doesn't work in an NS_ENUM.
Is it possible include a unicode character or are enums restricted to strings?
asked 40 secs ago
Aucun commentaire:
Enregistrer un commentaire