ios 获取文件扩展名备忘

            NSString *lastComponent = [cachePath lastPathComponent];  
            NSString *pathLessFilename = [cachePath stringByDeletingLastPathComponent];  
            NSString *originalPath = [pathLessFilename stringByAppendingPathComponent: lastComponent]; 
            NSString *pathExtension = [[cachePath pathExtension] lowercaseString]; 
            
            NSLog(@"%@", lastComponent);
            NSLog(@"%@", pathLessFilename);
            NSLog(@"%@", originalPath);
            NSLog(@"%@", pathExtension);

ios 获取文件扩展名备忘,布布扣,bubuko.com

ios 获取文件扩展名备忘

上一篇:App_Code 引起的 ambiguously 问题


下一篇:android 上传文件(表单),表单填写格式分析