Reference to 'X' is ambiguous

后端 未结 8 1536
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 23:29

After several changes to my project I suddenly get this build error:

Reference to \'kCGImageAlphaPremultipliedLast\' is ambiguous

<
8条回答
  •  猫巷女王i
    2020-12-06 00:29

    use

    #import "anyviewcontroller.h"
    

    instead of any module

    @import anymodule;
    

    I am using LGSideMenuController, when i integrate it first time, it is working well, but i don't know why i got this error after some time.

    so i replaced module @import LGSideMenuController; into header file Like this #import "UIViewController+LGSideMenuController.h"

    and error goes away.

提交回复
热议问题