ios开发,在启动程序的时候弹框提醒的逻辑要写在哪里?

想在程序运行到LaunchScreen.storyboard的时候,弹框提醒用户一些信息
请问应该把这段代码写在哪里?

我把代码写在didFinishLaunchingWithOptions方法里面,发现需要弹框时候,self会报错,请问可以用别的什么代替,或者写在别的地方?

    [self presentViewController:showAlert animated:true completion:nil];

在didFinishLaunchingWithOptions这个方法里面 ,self代表的是AppDelegate的对象,不是一个控制器,
presentViewController: animated: completion:这个方法是UIViewController.h中声明的方法,需要UIViewController或者其子类的对象调用
你这么写试试

 [self.window.rootViewController presentViewController:alert animated:YES completion:nil];

直接在第一页ViewController中的DidView等显示