Obtaining associated file type icons in ios -


I have downloaded a list of file names from a free web service and have a UITWV population with file names. Now, in the image of the cell, I would like to display an icon for each filename, in which the applications are connected to the iOS device (as you will see in the general list of files). Such as PDFs, doctors etc. Where / How do I get each affiliate app and its icon?

OK, I solved this by using the UIDocumentInteractionController to get an associated file type icon You can. It has a property called the icon which provides an array of symbols for the file in that URL that you started with the UIDOnt Interactive Controller. The big advantage of my situation is that if the file URL you supply does not exist then in my case I only used this snippet in the cellforu endindepapath method of UITLview.

  NameIPPier * Doctor = [self.lstDocsObjectAutandx: IndexPath.ro]; // get the file name cell.textLabel.text = doc.Name; Ns url * file url = [nsur file url andathpath: doctor. Noam]; UIDONS Interaction Controller * D = [UIDOttin Interaction Controller Interaction ControllerWith URL: File URL]; Cell.imageView.image = di.icons [0];    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -