How do you display icons for various file types in an iOS application?
-
17-03-2021 - |
Question
I'd like to know if anyone has found a way to display icons for different file types such as MS Word documents, Adobe Flash documents etc. on iPhone using iOS SDK?
It has an equivalent way on MacOS : using the method iconForFileType
of the class NSWorkspace
.
Solution
Check out UIDocumentInteractionController
:
@property(nonatomic,readonly) NSArray *icons
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow