MigrationViewController 1.1.0

MigrationViewController 1.1.0

测试已测试
Lang语言 Obj-CObjective C
许可 MIT
发布最新版本2020年4月

akuraru维护。



  • 作者
  • Akuraru IP

MigrationViewController

此库是用来确保CoreData迁移平滑进行的一个手段。

安装

CocoaPods

pod 'MigrationViewController'

如何使用

迁移将如下进行。此库被视为为了限制iOS启动。由于迁移(可能是),它不会有一个因为迁移(而)结束的启动时间限制。不会因为这个库的迁移而导致的显示问题。通过继承MigrationViewController,你应该表明在它实际使用的时候会有一些迁移。

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [MigrationViewController setUpWithWindow:self.window];
    
    return YES;
}

笔记

该库使用MagicalRecord。如果您不想安装MagicalRecord,请按以下操作进行。

  • 仅安装核心

     pod 'MigrationViewController/Core'
  • 创建一个继承自MigrationBaseViewController的ViewController

  • 描述数据库代码的设置,以覆盖设置

许可

MIT