I want the user to input a string and then assign the input to an NSString. Right now my code looks like this:
NSString *word; scanf(\"%s\", &word); >
Maybe this will work for you because it accepts string with spaces as well.
NSLog(@"Enter The Name Of State"); char name[20]; gets(name); NSLog(@"%s",name);