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

Implementation for #16, Automatic Headers/Footers #72

Merged
merged 2 commits into from Dec 17, 2011
Merged

Implementation for #16, Automatic Headers/Footers #72

merged 2 commits into from Dec 17, 2011

Conversation

jonsterling
Copy link
Collaborator

I've added -gridView:titleForHeaderInSection: and -gridView:titleForFooterInSection: to <KKGridViewDataSource>. These should behave as expected.

Consumers may continue to provide their own views in the usual way if they desire to do so.

If a view is not provided by the data source, but a title is, it will be
used to generate a default view.
@kolinkrewinkel
Copy link
Owner

Just curious, what do the automatic implementations look like?

kolinkrewinkel added a commit that referenced this pull request Dec 17, 2011
Implementation for #16, Automatic Headers/Footers
@kolinkrewinkel kolinkrewinkel merged commit 255f582 into kolinkrewinkel:master Dec 17, 2011
@jonsterling
Copy link
Collaborator Author

Pretty much like the demo ones you wrote. I spruced up the colors a tiny bit, but basically the same. Here's a screenshot:

Defaults

@jonsterling
Copy link
Collaborator Author

I think at some point, it may be beneficial to try to make the defaults look like UITableView, incidentally.

@kolinkrewinkel
Copy link
Owner

Okay, that looks nice. Later on I'll change them to Apple's default style.

@jonsterling
Copy link
Collaborator Author

Cool!

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

Successfully merging this pull request may close these issues.

None yet

2 participants