For saving a file on the iPad, I need to get the file name substring (after sites/default/files/
) in the following path string:
sites/default/files/243347_TroubleShootingSqlserver20052008.pdf
How would I do this?
For saving a file on the iPad, I need to get the file name substring (after sites/default/files/
) in the following path string:
sites/default/files/243347_TroubleShootingSqlserver20052008.pdf
How would I do this?
Set your path to NSURL *targetURL.
and then
NSString *filename = [[targetURL path] lastPathComponent];