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); >
This is how I'd do it:
char word [40]; scanf("%s",word); NSString * userInput = [[NSString alloc] initWithCString: word encoding: NSUTF8StringEncoding];