I am trying to convert the following ApiNSString call to an NSURL object:
http://beta.com/api/token= "69439028"
Here are the objects that I have installed. I escaped the backslash quotes:
NSString *theTry=@"http://beta.com/api/token=\"69439028\""; NSLog(@"theTry=%@",theTry); NSMutableURLRequest *url = [[NSURL alloc] URLWithString:theTry]; NSLog(@"url=%@",url);
Every time I run this, I keep getting this error:
2010-07-28 12:46:09.668 RF[10980:207] -[NSURL URLWithString:]: unrecognized selector sent to instance 0x5c53fc0 2010-07-28 12:46:09.737 RF[10980:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSURL URLWithString:]: unrecognized selector sent to instance 0x5c53fc0'
Can someone tell me how I can correctly convert this string to NSURL?
objective-c iphone
unicornherder
source share