RIABrowser: 用于 Swift 应用内调试的 Realm 对象查看器
RIABrowser 是一个可在 Swift 应用程序中使用的 Realm 对象查看器,简化使用 Realm 数据库的应用程序的调试过程。
要求:
- Swift 2.0+
- iOS 8.0+
- Xcode 7.0+
- Realm Swift 0.95.2+
安装:
RIABrowser 目前不支持 CocoaPods,需要手动安装:
- 克隆仓库:
git clone git@github.com:yopic/RIABrowser.git
- 将
RIABrowser/
文件夹复制到您的项目中。
用法:
- 在
AppDelegate
中注册 Realm Swift 模型类:
import UIKit
import RealmSwift
// 示例类
class User: Object {
// ...
}
44.07KB
文件大小:
评论区