I am getting this error: [NSURL stringByAppendingFormat:]: unrecognized selector sent to instance 0x5869210 when it gets to the append. strcust is a plain number and strURI is correct until the append.
NSString *strUIR = [NSURL URLWithString:@"https://cid.hooru.mobi:36610/?";
strURI = [strURI stringByAppendingFormat:@&Cust=IPRR%@", strCust];
Any thoughts would be appreciated. I am just trying to append Name/value pairs from variables. Can’t get the append to work.
There are several problems with this piece of code:
NSStringbut you are assigning anNSURLNSStringmethod on anNSURLobjectstrURIon your first line (it isstrUIR)Try this: