How to replace the following correctly?
NSString *stringURL = [NSString stringWithFormat:@"http://192.168.1.183:8001/GetDocument.aspx?id=%@ & user=admin_document",self.index];
NSURL *targetURL = [NSURL URLWithString:stringURL];
I want to replace %@ with self.index.
Your problem is more likely the whitespace. Try removing it: