Questions tagged [unsafe-unretained]

17 questions
0
votes
1 answer

Delegate pointer issues since upgrading to ARC

I've just upgraded my application to ARC, but I am having issues with how it handles classes with delegates. Because I am targeting iOS 4.0 and above, I am using __unsafe_unretained and @property (unsafe_unretained) to store the delegate…
0
votes
1 answer

ObjC automatic reference counting(ARC): weak vs assign vs unsafe_unretained for delegate?

I have a class: @interface MyClass : NSObject @property (weak) id delegate; @end and the implementation: @implementation MyClass @synthesize delegate; @end When I refactor the code for ARC, it tells me that synthesize of 'weak' property is only…
hzxu
  • 5,753
  • 11
  • 60
  • 95
1
2