iOS: Splitting NSString into FilePath&Name + Extension
How do I split
@"blah/.../myfile.txt"
into
@"blah/.../myfile"
and
@"txt"
NSString* fileName = [fileString stringByDeletingPathExtension];
NSString* extension = [fileString pathExtension];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With