On Wed, Aug 6, 2008 at 6:23 PM, Phil Faber <[EMAIL PROTECTED]> wrote:
> NSLog(@"Character %i of %@ is %@",i,pass1,[pass1 substringWithRange:1,2]);
You need to pass an NSRange struct to -[NSString substringWithRange:].
You can make one using the NSMakeRange() function. If you didn't
know that fun
On Aug 6, 2008, at 5:23 PM, Phil Faber wrote:
I'm trying to learn more about string manipulation and want to be
able to extract a single character from a string. I think I need to
use subStringWithRange (exacting from and to the same character
location) but I'm not sure and I'm also unsur