objective-c 如何获得文件的类型?

如果想获得类似:com.adobe.pdf 格式的类型,可以使用这个函数:

[[NSWorkspace sharedWorkspace] typeOfFile:pathToFile error:nil]

猜你喜欢

转载自blog.csdn.net/flame_007/article/details/79093151