自我“出道”以来,所有接触过的demo,教程文章等,都是在AppDelegate.m文件中判断用户第一次进入或者使用新版本,以此来决定是否展示引导页。先不论我是不是孤陋寡闻,请看以下:


将代码放在默认的根视图ViewController.m,而不是在AppDelegate.m文件中,在ViewController.m的ViewDidLoad中调用showPage方法,即可实现,而不需要在AppDelegate.m文件中设置根视图,并根据用户使用状态而更改根视图。
如有其他意见或建议,评论区为你开放:)
网友评论