I used to declare all delegate properties as
@property (assign) id<FooDelegate> delegate;
I was under the impression that all assign properties should now be weak pointers, is this correct?
If I try to declare as:
@property (weak) id<FooDelegate> delegate;
I get an error while trying to @synthesize (autogenerated weak properties are not supported).
What's the best practice in this case?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…