Swift - “use of unresolved identifier”

前端 未结 4 1191
迷失自我
迷失自我 2020-12-07 01:57

I am studying Swift! I want create Main interface on xib. But have error \"use of unresolved identifier\".

Add code from MainViewController

4条回答
  •  感动是毒
    2020-12-07 02:56

    This same issue happened with me too. I've only one target membership and still, I was getting “use of unresolved identifier”. I build the project and nothing changed.

    I tried to uncheck and recheck the target membership and the issue was resolved.

    If this doesn't resolve your issue, try building the project, check for typo error or use autocompletion and Quick Help to find recognized identifiers.

提交回复
热议问题