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
Post a Comment