0 votes
324 views
asked in Objective C by (2.6k points)

Hi

  How to get the file extension and remove the file extension in objective-c

1 Answer

0 votes
answered by (8.2k points)

Hi Codeg

    Just use this piece of code to get the file extension

          [fileName pathExtension]

    For removing file extension

         [[fileName lastPathComponent] stringByDeletingPathExtension]

Categories

...