JSONRender 1.1.0

JSONRender 1.1.0

adoma 维护。



  • ad0ma

JSONRender

Version Platform

示例

要运行示例项目,请首先克隆仓库,然后在 Example 目录中运行 pod install

快照

之前👇🏻

渲染👇🏻

使用方法

Objc #import “JSONRender/JSONRender.h”

Swift #import “JSONRenderSwift-Swift.h”

NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];

NSMutableAttributedString *mattrs = [[NSMutableAttributedString alloc] initWithString:@"Example\n" attributes:@{NSFontAttributeName: [UIFont boldSystemFontOfSize:30]}];

[mattrs append:json];

self.textView.attributedText = mattrs;

安装

JSONRender可通过CocoaPods获取。要安装,请 simple 在Podfile中添加以下行

pod 'JSONRender'
pod 'JSONRenderSwift'

作者

ad0ma, [email protected]

许可协议

JSONRender遵守MIT许可协议。有关更多信息,请参阅LICENSE文件。