objective c - Is there a way to show warning on not using weak self? -


every few months, same problem of viewcontroller not getting dealloced because of not using weak-self in block. there way of making xcode warn me this?

thanks.

this might -warc-retain-cycles

also, if instead of build, choose analyze in xcode, give more information bad practices in code includes information using weak variables.

another level further use infer, static analyzer ios/android facebook open sourced: www.fbinfer.com

also, see: http://fuckingclangwarnings.com/ other warnings. have '-w' set on project standard warnings


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -