ios 获取文件扩展名备忘

时间:2014-06-13 19:40:29   收藏:0   阅读:309

            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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!