Generic typeof for weak self references

前端 未结 10 882
误落风尘
误落风尘 2020-12-07 11:29

I am trying to figure out a way to use typeof to create a weak reference to self for use in blocks to avoid retain cycles.

When I first rea

10条回答
  •  天命终不由人
    2020-12-07 12:28

    Did you try check the C Language Dialect?

    Go to Project Navigator -> Project -> Target -> Build Settings

    There look for C Language Dialect. Change it from c11 to GNU99.

    I hope it helps :)

提交回复
热议问题