I\'m trying to modify the contents of one pointer using another. I want string2 to point to what string1 points to, so that when I modify string2, it modifies string1. How c
You need a pointer to an instance of NSString.
Example:
NSString *string1 = @"Hello!";
NSString **string2 = &string1; // get the address of string1
*string2 = @"changed"; // set what string2 points to be 'changed'
NSLog(@"string1:%@, string2:%@", string1, *string2); // should print "string1: changed, string2: changed"