From 70308a2227c269987ad9d0280e92c908892cc3fd Mon Sep 17 00:00:00 2001 From: Jamie Quadri Date: Sat, 20 Jun 2015 21:12:49 -0400 Subject: [PATCH] Break retain cycle between stack view and alignment strategy --- Pod/Classes/OAStackViewAlignmentStrategy.m | 2 +- Pod/Classes/OAStackViewDistributionStrategy.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pod/Classes/OAStackViewAlignmentStrategy.m b/Pod/Classes/OAStackViewAlignmentStrategy.m index dfe604e..631ab5a 100644 --- a/Pod/Classes/OAStackViewAlignmentStrategy.m +++ b/Pod/Classes/OAStackViewAlignmentStrategy.m @@ -21,7 +21,7 @@ @interface OAStackViewAlignmentStrategyCenter: OAStackViewAlignmentStrategy @end @interface OAStackViewAlignmentStrategy () -@property(nonatomic) OAStackView *stackView; +@property(nonatomic, weak) OAStackView *stackView; @property(nonatomic) NSMutableArray *constraints; @end diff --git a/Pod/Classes/OAStackViewDistributionStrategy.m b/Pod/Classes/OAStackViewDistributionStrategy.m index e1c9566..4f28e87 100644 --- a/Pod/Classes/OAStackViewDistributionStrategy.m +++ b/Pod/Classes/OAStackViewDistributionStrategy.m @@ -15,7 +15,7 @@ @interface OAStackViewDistributionStrategyFillEqually : OAStackViewDistributionS @end @interface OAStackViewDistributionStrategy () -@property(nonatomic) OAStackView *stackView; +@property(nonatomic, weak) OAStackView *stackView; @property(nonatomic) NSMutableArray *constraints; @end