Latest 1.0.2
Homepage https://github.com/Damsir/DistOpenFiles
License MIT
Platforms ios 8.0, requires ARC
Dependencies AFNetworking
Frameworks UIKit
Authors

打开,预览 -> 本地,网络文件

使用方法:

  1. 导入头文件 #import "DistOpenFile.h"
  2. [self openFileWithName:@"阿里巴巴Java开发手册.pdf" filePath:@"http://61.133.111.94:82/LYYD/Temp/Materials/380/2984.pdf" materialId:@"1" local:NO];
    /*

    • name: 文件名 如:文件.pdf
    • filePath: 文件的下载路径
    • materialId : 文件的Id(唯一标识) 如:3.8656b3fb-95c5-4855-9b90-90f572fd5d32
      */

Latest podspec

{
    "name": "DistOpenFiles",
    "version": "1.0.2",
    "summary": "u6253u5f00uff0cu9884u89c8 -> u672cu5730uff0cu7f51u7edcu6587u4ef6",
    "authors": {
        "Damrin": "[email protected]"
    },
    "homepage": "https://github.com/Damsir/DistOpenFiles",
    "source": {
        "git": "https://github.com/Damsir/DistOpenFiles.git",
        "tag": "1.0.2"
    },
    "license": "MIT",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": [
        "DistOpenFiles",
        "DistOpenFiles/**/*.{h,m}"
    ],
    "frameworks": "UIKit",
    "dependencies": {
        "AFNetworking": [
            "~> 3.1.0"
        ]
    }
}

Pin It on Pinterest

Share This