i need to save a string within my application but i dont want to create a plist just for saving 1 string is there any other way to do so? im using storyboard. i tried segue but it didn’t work
-(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString: @"modal"])
{
ViewController *vc = (ViewController *)[segue destinationViewController];
vc.subject = self.subject;
}
}
If u can to use the string any where in the project just create a extern variable like this way.
In AppDelegate.h
In AppDelegate.m
U can use the stringObject any where in the project.