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

Fix documentation referencing CKComponentCollectionViewDataSource, to CKCollectionViewDataSource #48

Merged
merged 1 commit into from Mar 30, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions _docs/datasource-basics.md
Expand Up @@ -49,7 +49,7 @@ Don't access global state inside a Component. Use the context to pass this infor

#### Create a `CKCollectionViewDataSource`

Ok, so now we have our view controller as the component provider, let's create our `CKComponentCollectionViewDataSource` and attach the collection view to it.
Ok, so now we have our view controller as the component provider, let's create our `CKCollectionViewDataSource` and attach the collection view to it.

```objc++
- (void)viewDidLoad {
Expand Down Expand Up @@ -129,7 +129,7 @@ Pretty simple right ? And this logic can apply to any `UICollectionViewLayout` :
Time to interact with those items now; nothing special here the regular selection APIs can be used. Let's say the models have a url that should be opened when the user tap on an item.

```objc++
- (void)dataSource:(CKComponentCollectionViewDataSource *)dataSource didSelectItemAtIndexPath:(NSIndexPath *)indexPath
- (void)dataSource:(CKCollectionViewDataSource *)dataSource didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
MyModel *model = (MyModel *)[self.dataSource modelForItemAtIndexPath:indexPath];
NSURL *navURL = model.url;
Expand Down