I am newbie to programming. Any help could be greatly appreciated.
It\'s in AddViewController.
NSLog(@\"Am Currently at %@\",locatedAt);
DetailsOfPe
The issue is due to you are assigning an autoreleased variable. It's released before you display it on the detailView. So you need to retain it. Or You need to allocate the testAddressStr
.
Just replace this line:
details.testAddressStr=[NSString stringWithFormat:@"%@",locatedAt];
with:
details.testAddressStr = [[NSString stringWithFormat:@"%@",locatedAt] retain];
or
details.testAddressStr = [[NSString alloc] initWithString:[NSString stringWithFormat:@"%@",locatedAt]];