类型强转

异常:AppDelegate *appDg = app.delegate;

提示:Initializing ‘AppDelegate *_strong’ with an expression of incompatible type ‘id ‘

改为:AppDelegate *appDg = (AppDelegate *)app.delegate;

    原文作者:Dean
    原文地址: https://segmentfault.com/a/1190000000663365
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞