You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to get your project working and I almost have it working with a few tweaks (see below). But when I tap on the list to get to the detail page, the detail page doesn't show the repo's title like it should.
Any idea what's going on here?
ListRepoModuleView.swift
func showRepos(repos:Array<Repo>, pulledToRefresh:Bool){self.data = repos;
self.resetRepoCellModels(pulledToRefresh);
}func resetRepoCellModels(pulledToRefresh:Bool){varcellModels:Array<RepoCellModel>=Array<RepoCellModel>();
for repo:Repo in self.data {letcellModel:RepoCellModel=RepoCellModel(avatarUrl: repo.avatarUrl!, name: repo.name!){ _ in// **************debugPrint(repo.name)// prints nil here ????self.presenter?.presentDetailRepoModuleModule(repo); // passed to the next view but is nil// **************self.tableView.deselectRowAtIndexPath(self.tableView.indexPathForSelectedRow!, animated: true);
};
cellModels.append(cellModel);
}Async.main{
if(self.hakuba.sectionsCount >0){self.hakuba[0].reset(cellModels).bump();
}else{letsection=Section();
self.hakuba
.insert(section, atIndex:1).bump();
self.hakuba[0].append(cellModels).bump();
}}// ...
Hi, I'm trying to get your project working and I almost have it working with a few tweaks (see below). But when I tap on the list to get to the detail page, the detail page doesn't show the repo's title like it should.
Any idea what's going on here?
ListRepoModuleView.swift
I have your starter here:
git clone -b issue-3 git@github.com:apparition47/iOSSwiftStarter.git
Using XCode 8.1 on macOS 10.11.6.
Thanks!
The text was updated successfully, but these errors were encountered: