I have declared the variables as a subclass of UIViewExtention. Am converting the project non-arc to arc
@interface SectionIconView : UIViewExtention
@property (nonatomic,weak) UIImageView *sectionPortraitImageView;
@property (nonatomic,weak) UIImageView *sectionLandscapeImageView;
I have declared the property as weak, then it shows an error in .m file i.e.,
Assigning retained object to weak variable;object will be released after assignment.
I have changed the attribute as strong..
@property (nonatomic,strong) UIImageView *sectionPortraitImageView;
Then it shows an error is:
Capture strongly in this block is likely to lead to a retain cycle.
How to avoid this error?