Hello,
I am generating a hash from a NSString, using [myString hash] and the result I get is a negative value.
The Apple's documentation is saying :
- (NSUInteger)hash
Return Value An unsigned integer that can be used as
Any idea ?
** Edited **
Try this code in your device :
NSString *udidStr = [[UIDevice currentDevice] uniqueIdentifier];
NSUInteger udid = [udidStr hash];
For some device I get a negative value.
Thanks