Latest 0.0.1
Homepage https://github.com/ArchyVan/ARReader
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit, CoreFoundation, CoreText, CoreGraphics, CoreImage, QuartzCore
Authors

ARReader



ARReader is a simple READRER based on the ARComposing typesetting engine, complete Objective-C implementation,The implementation for part of components is reference to tangqiaoboy, ibireme source code.

Installation

CocoaPods

To integrate ARComposing into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target 'your_app' do
  pod 'ARComposing', '~> 0.0.1'
end

Then, run the following command:

$ pod install

You should open the {Project}.xcworkspace instead of the {Project}.xcodeproj after you installed anything from CocoaPods.

Manually

You can just download the lastest zip from this page and drag all things under "ARComposing" folder into your project. Then you just need to import the header file:

#import "ARComposing.h"

Usage

You can find the full API documentation at CocoaDocs.

Basic

Import ARComposing into your source files in which you want to use the framework.

#import "ARComposing.h"

Page Parser

//The Content you want to parse
NSString *content = ...

//Config The Parser
ARPageParser *parser = [ARPageParser sharedInstance];
parser.fontSize = 21;
parser.titleLength = 11;
parser.indent = YES;
parser.pageSize = CGSizeMake(ScreenWidth - 30, ScreenHeight - 80);
parser.lineSpacing = 10;
parser.textAlignment = NSTextAlignmentJustified;
pageParser parserContent:content]

Stucture

Name Description
ARComposingKit Reader UI Component
ARAsyncLayer Asynchronous Layer
ARComposingUtils Composing Utilities
ARPageData Page Data
ARPageParser The Core Parser

Features

  • [x] 不同排版样式切分
  • [x] 异步图层绘制
  • [x] 可编辑属性
  • [ ] 全选文本
  • [ ] 光标可控性
  • [ ] 图文混合类型文本
  • [ ] The CocoaDocs

Latest podspec

{
    "name": "ARComposing",
    "summary": "Quick Layout Engine.",
    "version": "0.0.1",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ArchyVan": "[email protected]"
    },
    "homepage": "https://github.com/ArchyVan/ARReader",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/ArchyVan/ARReader.git",
        "tag": "0.0.1"
    },
    "requires_arc": true,
    "source_files": "ARReader/ARComposing/**/*.{h,m}",
    "public_header_files": "ARReader/ARComposing/**/*.{h}",
    "frameworks": [
        "UIKit",
        "CoreFoundation",
        "CoreText",
        "CoreGraphics",
        "CoreImage",
        "QuartzCore"
    ]
}

Pin It on Pinterest

Share This