This line
NSMutableString *teststring;
simply establishes a pointer, but does not create anything. Instead, you need to create a new instance of NSMutableString
, for example:
NSMutableString *teststring = [[NSMutableString alloc] init];
[teststring appendString:@"hey"];
NSLog("%@", teststring);