Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有按需加载 #5

Open
ghost opened this issue Jul 16, 2016 · 1 comment
Open

没有按需加载 #5

ghost opened this issue Jul 16, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 16, 2016

pragma mark --private Method--初始化子控制器

-(void)setupChildController {
for (NSInteger i = 0; i<self.currentChannelsArray.count; i++) {
ContentTableViewController *viewController = [[ContentTableViewController alloc] init];
viewController.channelName = self.currentChannelsArray[i];
viewController.channelId = self.channelsUrlDictionary[viewController.channelName];
[self addChildViewController:viewController];
}
}

在这一步就获取了所有数据 。。。。不太好吧

@NotFound9
Copy link
Owner

这里只是设置所有子控制器,还没有加载,滑到那个页面才会进行网络请求

gitbook-com bot pushed a commit to lipf1024/interviewGuide that referenced this issue Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant