This repository was archived by the owner on Feb 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,21 +27,27 @@ - (instancetype)init
2727
2828 self = [super initWithCollectionViewLayout: _flowLayout];
2929 if (self != nil ) {
30- self.view .asyncDataSource = self;
31- self.view .asyncDelegate = self;
32-
33- self.view .pagingEnabled = YES ;
34- self.view .allowsSelection = NO ;
35- self.view .showsVerticalScrollIndicator = NO ;
36- self.view .showsHorizontalScrollIndicator = NO ;
37-
38- ASRangeTuningParameters tuningParams = { .leadingBufferScreenfuls = 1.0 , .trailingBufferScreenfuls = 1.0 };
39- [self setTuningParameters: tuningParams forRangeType: ASLayoutRangeTypePreload];
40- [self setTuningParameters: tuningParams forRangeType: ASLayoutRangeTypeRender];
4130 }
4231 return self;
4332}
4433
34+ - (void )didLoad
35+ {
36+ [super didLoad ];
37+
38+ self.view .asyncDataSource = self;
39+ self.view .asyncDelegate = self;
40+
41+ self.view .pagingEnabled = YES ;
42+ self.view .allowsSelection = NO ;
43+ self.view .showsVerticalScrollIndicator = NO ;
44+ self.view .showsHorizontalScrollIndicator = NO ;
45+
46+ ASRangeTuningParameters tuningParams = { .leadingBufferScreenfuls = 1.0 , .trailingBufferScreenfuls = 1.0 };
47+ [self setTuningParameters: tuningParams forRangeType: ASLayoutRangeTypePreload];
48+ [self setTuningParameters: tuningParams forRangeType: ASLayoutRangeTypeRender];
49+ }
50+
4551- (void )reloadData
4652{
4753 [self .view reloadData ];
Original file line number Diff line number Diff line change 123123 05E2127E19D4DB510098F589 /* Frameworks */,
124124 05E2127F19D4DB510098F589 /* Resources */,
125125 F012A6F39E0149F18F564F50 /* Copy Pods Resources */,
126- D668455448B2FFAC9BEF28DD /* Embed Pods Frameworks */,
127126 );
128127 buildRules = (
129128 );
180179/* End PBXResourcesBuildPhase section */
181180
182181/* Begin PBXShellScriptBuildPhase section */
183- D668455448B2FFAC9BEF28DD /* Embed Pods Frameworks */ = {
184- isa = PBXShellScriptBuildPhase;
185- buildActionMask = 2147483647;
186- files = (
187- );
188- inputPaths = (
189- );
190- name = "Embed Pods Frameworks";
191- outputPaths = (
192- );
193- runOnlyForDeploymentPostprocessing = 0;
194- shellPath = /bin/sh;
195- shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
196- showEnvVarsInLog = 0;
197- };
198182 E080B80F89C34A25B3488E26 /* Check Pods Manifest.lock */ = {
199183 isa = PBXShellScriptBuildPhase;
200184 buildActionMask = 2147483647;
You can’t perform that action at this time.
0 commit comments