I'm having an issue with a string which is being returned from a webservice. I am setting the string up in the header file, simple with
NSString *serviceUserID;
@property (nonatomic, retain) NSString *serviceUserID;
then I'm synthesizing it as normal. I can set it using
serviceUserID = @"4fffrdscfbg-44-06dfgf-dfgdfg-32eer456134";
but when it's set using the service return, it seems to save an object which I cannot access later on. So the code below doesn't work...
NSLog(@"result = %@", result);
serviceUserID = result;
The code above will output the serviceUserID string to the log window, but when I try to do the same outside of that function it crashes with no error messages. I've no idea what's up. I have tried to set the string with initWithFormat and all sorts, but nothing's working!! I just need to set the serviceUserID Variable so I can use it in other functions... is there a way to set the text that I'm missing??
Thanks for any help.