Skip to content

Commit

Permalink
修复循环引用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lsp1286 committed Feb 26, 2018
1 parent 097ac9b commit fedb366
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion PageViewDemo/PageViewDemo/PageView/LSPContentView.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ @interface LSPContentView ()<UICollectionViewDelegate,UICollectionViewDataSource
/**
父控制器
*/
@property(nonatomic, strong) UIViewController *parentVc;
@property(nonatomic, weak) UIViewController *parentVc;
/**
是否禁止ScollView拖动,防止两个代理产生死循环
*/
Expand Down
2 changes: 1 addition & 1 deletion PageViewDemo/PageViewDemo/PageView/LSPPageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ @interface LSPPageView ()<LSPTitleViewDelegate,LSPContentViewDelegate>
/**
父控制器
*/
@property(nonatomic, strong) UIViewController *parentVc;
@property(nonatomic, weak) UIViewController *parentVc;
/**
标题视图
*/
Expand Down

0 comments on commit fedb366

Please sign in to comment.