Here is a simulator sandbox path (full path)
nsstring* [email protected] "/users/junzoo/library/application Support/iphone simulator/7.0.3/applications/ 63925f20-af97-4610-af1c-b6b4157d1d92/documents/download/books/2013_50.zip ";
9 actions to intercept a path
NSLog(@ "1=%@", [index lastpathcomponent]);
NSLog(@ "2=%@", [index stringbydeletinglastpathcomponent]);
NSLog(@ "3=%@", [index pathextension]);
NSLog(@ "4=%@", [index stringbydeletingpathextension]);
NSLog(@ "5=%@", [index Stringbyabbreviatingwithtildeinpath]);
NSLog(@ "6=%@", [index Stringbyexpandingtildeinpath]);
NSLog(@ "7=%@", [index Stringbystandardizingpath]);
NSLog(@ "8=%@", [index Stringbyresolvingsymlinksinpath]);
NSLog (@ "9=%@",[[Index lastpathcomponent] stringbydeletingpathextension]);
corresponding results
1=2013_50.zip
2=/users/junzoo/library/application Support/iphone simulator/7.0.3/applications/ 63925f20-af97-4610-af1c-b6b4157d1d92/documents/download/books
3=zip
4=/users/junzoo/library/application Support/iphone simulator/7.0.3/applications/ 63925f20-af97-4610-af1c-b6b4157d1d92/documents/download/books/2013_50
5=~/documents/download/books/2013_50.zip
6=/users/junzoo/library/application Support/iphone simulator/7.0.3/applications/ 63925f20-af97-4610-af1c-b6b4157d1d92/documents/download/books/2013_50.zip
7=/users/junzoo/library/application Support/iphone simulator/7.0.3/applications/ 63925f20-af97-4610-af1c-b6b4157d1d92/documents/download/books/2013_50.zip
8=/users/junzoo/library/application Support/iphone simulator/7.0.3/applications/ 63925f20-af97-4610-af1c-b6b4157d1d92/documents/download/books/2013_50.zip
9=2013_50
Reproduced
IOS gets the file name and suffix from the URL