GGGHub/Reader
GGGHub/Reader has 1,213 GitHub stars and 325 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 07:43 UTC. Last push 2022-10-09.
iOS基于CoreText实现的电子书阅读器,支持txt,epub格式
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalReader
基于Core Text实现的iOS客户端的电子书阅读器。
支持ePub与text格式
2016.11.22 更新
- 添加对ePub格式电子书的阅读排版支持
- 添加对ePub格式电子书的图片显示支持
部分功能实现效果

关于Reader
- 可以自动提取章节并生成目录
- 选取一段文字可进行复制,做笔记等功能
- 保存阅读进度,即使退出应用也可以继续之前的阅读
- 更改字体大小,进度跳转,主题更换等功能
- 支持
txt与ePub格式的电子书文件
安装与使用
安装
- 将
Reader目录下的所有文件都添加到工程中 - 由于解压
ePub文件,需要用到开源的.c文件用于解压缩。所以使用时如果项目中有.pch文件参考本项目中.pch文件写法
#ifdef __OBJC__
//在.pch中这里写引用的.h文件与宏
#endif
3.需要导入libz.tbd库
使用
text文件
LSYReadPageViewController *pageView = [[LSYReadPageViewController alloc] init];
NSURL *fileURL = [[NSBundle mainBundle] URLForResource:@"mdjyml"withExtension:@"txt"];
pageView.resourceURL = fileURL; //文件位置
pageView.model = [LSYReadModel getLocalModelWithURL:fileURL]; //阅读模型
[self presentViewController:pageView animated:YES completion:nil];
ePub文件
LSYReadPageViewController *pageView = [[LSYReadPageViewController alloc] init];
NSURL *fileURL = [[NSBundle mainBundle] URLForResource:@"细说明朝"withExtension:@"epub"];
pageView.resourceURL = fileURL; //文件位置
pageView.model = [LSYReadModel getLocalModelWithURL:fileURL]; //阅读模型
[self presentViewController:pageView animated:YES completion:nil];
提示
之前安装过的下载最新版,应把之前安装的卸载后再安装
说明
对于有图片和定制样式的epub文件只显示纯文本信息,因为对epub每个章节的html文件直接转成字符串来处理,css样式与epub自带的本地图片没有做处理。
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,306 starspublic-apis/public-apis
A collective list of free APIs
497,552 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
446,348 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,246 stars