码迷,mamicode.com
首页 > 移动开发 > 详细

Incompatible pointer types assiging to "UIViewController" *_Nullable' from 'AppDelegate*'

时间:2016-09-06 22:50:30      阅读:863      评论:0      收藏:0      [点我收藏+]

标签:

    Incompatible pointer types assiging to "UIViewController" *_Nullable‘ from ‘AppDelegate*

本人遇到此问题的情况:在AppDelegate.h中判断版本号时,进行跳转引导页主控制器。 

    self.window.rootViewController =[self initRootVc];//注意此处不能调用以init开头的方法,要改为其他名字

eg:[self firstVc];

//调用此方法返回一个控制器,作为程序的根控制器。

Incompatible pointer types assiging to "UIViewController" *_Nullable' from 'AppDelegate*'

标签:

原文地址:http://www.cnblogs.com/lyjpost/p/5847346.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!