NSString *urlString = [NSString stringWithFormat:@"http://shareaspetto.com/share/updateprofile.php?name=%@&gender=%@&email=%@&about_us=%@&id=%@&image=%@", nameString, genderString, emailString, aboutusString, idString, imgNameString];
NSLog(@"urlString = %@", urlString);
while ([urlString rangeOfString:@" "].location != NSNotFound) {
urlString = [urlString stringByReplacingOccurrencesOfString:@" " withString:@"%20"];
}
NSString *rplyString = [NSString stringWithContentsOfURL:[NSURL URLWithString:urlString]];
Incompatible pointer types sending 'NSURL *__strong' to parameter of type 'NSString *'
当我编译上面的代码时会出现警告。