0

私はpdfファイルで動作するアプリを持っています。ファイル Info.plist にこれを追加しました:

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeIconFiles</key>
        <array>
            <string>iconPDF</string>
        </array>
        <key>CFBundleTypeName</key>
        <string>PDF</string>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.adobe.pdf</string>
        </array>
    </dict>
</array>

私のアプリには UITableViewController があり、にアイコンを(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath設定したいのですが、このアイコンを取得する方法がわかりません。で試しましたが、この配列ではデフォルトのアイコンしか見つかりません。cell.imageView.imageCFBundleTypeIconFiles
docInteractionController.icons

4

1 に答える 1