Created
March 31, 2015 03:46
-
-
Save kazukitanaka0611/4527f03300f1f7f291ff to your computer and use it in GitHub Desktop.
kUTTypePDF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let fileUTI = UTTypeCreatePreferredIdentifierForTag( | |
kUTTagClassFilenameExtension, fileName.pathExtension, nil) { | |
if UTTypeConformsTo(fileUTI.takeRetainedValue(), kUTTypePDF) != 0 { | |
NSLog("test") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment