NSString has a "
characterAtIndex:" method you can use to get one character of a string; then you can compare it to the same character of the other string.
Code:
NSUInteger lastIndex = [entered length] -1;
unichar lastChar = [entered characterAtIndex:lastIndex];
unichar storedChar = [stored characterAtIndex:lastIndex];
BOOL match = (lastChar==storedChar)
if(match)
NSLog(@"It's a match!");
I didn't check that "stored" is longer or as long as "entered;" you really should though, to prevent a crash.