Questions tagged [libextobjc]

2 questions
47
votes
4 answers

iOS Proper Use of @weakify(self) and @strongify(self)

I'm starting to integrate libextobjc (https://github.com/jspahrsummers/libextobjc) into my iOS application primarily to take advantage of EXTScope's @strongify and @weakify, but have a few questions before proceeding too deep into the…
Mike
  • 9,765
  • 5
  • 34
  • 59
22
votes
3 answers

Explanation of how weakify and strongify work in ReactiveCocoa / libextobjc

I understand that you should use @weakify @strongify to avoid retain cycles but I don't completely understand how they actually achieve this?
nacross
  • 2,013
  • 2
  • 25
  • 37