I want to ask if I want to create a NSString, such as
for ( int i=1; i<=10; i++) {
NSString *picURLstring = [NSString stringWithFormat:@"http://localhost/Testing/files/Demo Presentation/Slide%d.JPG", i] ;
...
}
This is part of my code, so that I can later get the URL of 10 images. Then I use this URL to download the images from my server, but it seems dont work. But while I change the file in my server from "Demo Presentation" to "DemoPresentation", also the Xcode statement to:
for ( int i=1; i<=10; i++) {
NSString *picURLstring = [NSString stringWithFormat:@"http://localhost/Testing/files/DemoPresentation/Slide%d.JPG", i] ;
...
}
It works! It can download the images I need from my server. So may I ask how to implement a space inside a string? I tried to use %20, thus "Demo%20Presentation" in the string, but it still not working, please help.