2017-01-23 3 views
0

イメージ、ビデオ、オーディオ、pdfおよびその他のドキュメントファイルではないすべてのファイルをフィルタリングしようとしています。マイクロソフト現時点で Xamarin iOS:ドキュメントピッカーでFileTypeショーをフィルタリングする

、私は私のコードでこれを持っている:

var allowedUTIs = new string[] { 
      UTType.Image, 
      UTType.PDF, 
      UTType.Video, 
      UTType.Audio, 
      UTType.Movie, 
      UTTYPE.Text, 
      "com.microsoft.word.doc", 
      "com.microsoft.excel.xls", 
      "com.microsoft.powerpoint.ppt", 
      "org.openxmlformats.wordprocessingml.document" 
     }; 

主な関心事は、カスタム定義されたタイプです。 doc、xls、ppt、docxなどのすべてのMicrosoft Officeファイルタイプをカバーしていますか?

リンゴの特定の文書ファイル。

答えて

2
 var allowedUtis = new string[] { 
      UTType.UTF8PlainText, 
      UTType.PlainText, 
      UTType.RTF, 
      UTType.PNG, 
      UTType.Text, 
      UTType.PDF, 
      UTType.Image, 
      UTType.UTF16PlainText, 
      UTType.FileURL, 
      "com.microsoft.word.doc", 
      "org.openxmlformats.wordprocessingml.document", 
      "com.microsoft.powerpoint.​ppt" 
      "org.openxmlformats.spreadsheetml.sheet", 
      "org.openxmlformats.presentationml.presentation", 
      "com.microsoft.excel.xls" 
     }; 

これらはように、私のUTTypesある。この中

、docに関する "com.microsoft.word.doc"、DOCXのための "org.openxmlformats.wordprocessingml.document" と。私はすべての文書に対してテストしました。

関連する問題