Latest 1.0.5
Homepage https://github.com/LYajun/YJReaderTool
License MIT
Platforms ios 8.0, requires ARC
Dependencies Masonry, AFNetworking
Authors

文本阅读工具,支持文本、pdf、办公等文件查看

安装方式

1.自动安装

pod ‘YJReaderTool’

2.手动安装

  • 1)、将YJReaderTool文件拖入工程中
  • 2)、按照如下图进行相应配置

Build Settings:

Header Search Paths

Build Phases:

Link Binary With Libraries

  • 3)、依赖第三方库

    Masonry, AFNetworking

使用

  • 文件网络地址

@property (nonatomic,copy) NSString *fileUrl;

  • 文件本地路径

@property (nonatomic,copy) NSString *filePath;

YJReaderController *readVC = [[YJReaderController alloc] init];
readVC.readerInfo.fileUrl = @"http://192.168.3.81:8002/lgftp/LBD_TeachProgram/liuyajun1/d4e2e8b3-1280-4da3-9fcc-b35f19c74f42/AfterClassProgram/E101839410/课后标准资料2.txt.html";
[self.navigationController pushViewController:readVC animated:YES];

Latest podspec

{
    "name": "YJReaderTool",
    "version": "1.0.5",
    "summary": "u652fu6301u6587u672cu3001pdfu3001u529eu516cu6587u4ef6u67e5u770b",
    "homepage": "https://github.com/LYajun/YJReaderTool",
    "license": "MIT",
    "authors": {
        "u5218u4e9au519b": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/LYajun/YJReaderTool.git",
        "tag": "1.0.5"
    },
    "source_files": [
        "YJReaderTool/Classes/*.{h,m}",
        "YJReaderTool/Classes/**/*.{h,m}"
    ],
    "resources": "YJReaderTool/Assets/YJReaderTool.bundle",
    "libraries": "xml2.2",
    "xcconfig": {
        "HEADER_SEARCH_PATHS": "$(SDKROOT)/usr/include/libxml2"
    },
    "requires_arc": true,
    "dependencies": {
        "Masonry": [],
        "AFNetworking": []
    }
}

Pin It on Pinterest

Share This