The problem is probably that that _guideDescription
string already is deallocated when you try to access it in -saveIntoExisted
. You are now doing
_guideDescription = [[NSString alloc] initWithString:[[notification userInfo] valueForKey:@"selected"]];
and that works, but I would recommend:
[_guideDescription retain];
That makes sure the system doesn’t deallocate the string.
solved Program crashing after trying to read a NSString