怎样获得文件的扩展名

来源:互联网 发布:mac amtlib.dll在哪里 编辑:程序博客网 时间:2024/04/30 04:05

   

     NSURL*  theFile = [sheetURL];

             // Write the contents in the new format.


            NSString *strPath = [theFile path];

             

            NSString *ext = [strPath pathExtension];

             

             NSLog(@"%@", ext);


0 0
原创粉丝点击