I'm sharing my string over the AppDelegate-Class:
SpeakersAppDelegate *mainDelegate = (SpeakersAppDelegate *)[[UIApplication sharedApplication] delegate];
[mainDelegate setShareText:xmlString];
And get the string back from the AppDelegate-Class:
SpeakersAppDelegate *mainDelegate = (SpeakersAppDelegate *)[[UIApplication sharedApplication] delegate];
NSString *xmlString = [mainDelegate getShareText];
With no problems if I use:
xmlString = @"<rsp><photos><photo url='xyz.jpg' thumb='xyz.jpg' /></photos></rsp>";
But the app crashes when I use (xmlString get's the content of the url correctly, the problem is the resiving of the string from AppDelegate-Class when xmlString is filled withContentFromURL):
xmlString = [NSString stringWithContentsOfURL:[NSURL URLWithString:url]];
Does anyone knows a solution? Thanks for help!