Latest 1.0.0
Homepage https://github.com/wangxiaocan/XCReader
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

阅读SDK-iOS

项目介绍

阅读合作SDK-iOS

安装教程

  1. 下载琳竹新阅读SDK到本地并解压,将解压后的 libLZX_Reader_SDK 文件夹拉入项目中
  2. 框架中使用了ZipArchiveDTCoreTextSDWebImageMJRefreshMasonryAFNetworkingSBJson5第三方框架,使用时需下载这些第三方框架导入到项目中,或者直接使用Pod方式导入。
    导入方法:Pod方法

    source 'https://github.com/CocoaPods/Specs.git'
    
    target 'Project Name' do
    
        pod 'ZipArchive', '~> 1.4.0'
    
        platform :ios, '8.0'
        pod 'DTCoreText'
        pod 'SDWebImage', '~> 4.0'
        pod 'MJRefresh'
        pod 'Masonry'
        pod 'AFNetworking', '~> 3.0'
        pod 'SBJson5', '~> 5.0.0'
    end
  3. Build Phases中添加 libz.tbd

  4. info.plist中加入

    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>

使用说明

  1. 引用头文件

    #import "LZXReaderSDKManager.h"
  2. 获取并使用阅读SDK导航控制器

    if (sender.tag == 10) {
        //tab在底部
        UINavigationController *readControl = [LZXReaderSDKManager lzxReaderNavigationViewController];
        [self presentViewController:readControl animated:YES completion:nil];
    }else if (sender.tag == 20) {
        //tab在顶部
        LStyleTwoViewController *control = [[LStyleTwoViewController alloc] init];
        [self presentViewController:control animated:YES completion:nil];
    }
    
    具体操作方式请参考Demo

Latest podspec

{
    "name": "XCReader",
    "version": "1.0.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": "8.0"
    },
    "summary": "lzxRead SDK",
    "homepage": "https://github.com/wangxiaocan/XCReader",
    "authors": {
        "xiaocan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wangxiaocan/XCReader.git",
        "tag": "1.0.0"
    },
    "requires_arc": true,
    "source_files": "XCReader/*.{a,h,m,xcdatamodeld}",
    "resources": "XCReader/*.bundle",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This