Home > Mobile >  How AFNetworking transfer responseObject out?
How AFNetworking transfer responseObject out?

Time:10-16

Wrote a self in success. The response=responsObject; Then the self. The response to return, but in other places call this method when they get is nil, how to do?

CodePudding user response:

Success is a callback commonly block, you face in a block object assignment, weak references before self, in the use of the assignment, strong references are not enough

CodePudding user response:

reference 1st floor So 灬 low-key response:
success is a callback commonly block, you face in a block object assignment, weak references before self, in the use of the assignment, strong references are not enough
this is the block afn back off, afn will deal with the self
  •  Tags:  
  • iOS
  • Related