Skip to content

Commit 805c6d0

Browse files
authored
Fix headers on README.md
1 parent 4efb04e commit 805c6d0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ TLIndexPathTools is a small set of classes that can greatly simplify your table
1111

1212
TLIndexPathTools is as lightweight as you want it to be. Start small by using `TLIndexPathDataModel` as your data model (instead of an array) and gain the ability to easily organize data into sections and simplify your view controller with APIs like `[dataModel numberOfRowsInSection:]`, `[dataModel itemAtIndexPath:]`, and `[dataModel indexPathForItem:]`. Or keep reading to learn about automatic batch updates, easier Core Data integration and more.
1313

14-
##Installation
14+
## Installation
1515

1616
Add "TLIndexPathTools" to your podfile or, if you're not using CocoaPods:
1717

@@ -21,7 +21,7 @@ Add "TLIndexPathTools" to your podfile or, if you're not using CocoaPods:
2121

2222
<!--CoreData is required for Core Data integration and because `TLIndexPathSectionInfo` implements the `NSFetchedResultsSectionInfo` protocol. QuartzCore is required because the Grid extension uses it.-->
2323

24-
##Overview
24+
## Overview
2525

2626
`NSArray` is the standard construct for simple table and collection view data models. However, if multiple sections are involved, the typical setup is an `NSArray` containing section names and an `NSDictionary` of `NSArrays` containing data items, keyed by section name. Since table and collection views work with `NSIndexPaths`, the following pattern is used repeatedly in data source and delegate methods:
2727

@@ -43,7 +43,7 @@ Most of the functionality in TLIndexPathTools can be accomplished with just `TLI
4343

4444
This version of TLIndexPathTools is designed to handle up to a few thousand items. Larger data sets may have performance issues.
4545

46-
###TLIndexPathDataModel
46+
### TLIndexPathDataModel
4747

4848
`TLIndexPathDataModel` is an immutable object you use in your view controller to hold your data items instead of an array (or dictionary of arrays, for multiple sections). There are four initializers, a basic one and three for handling multiple sections:
4949

@@ -91,7 +91,7 @@ dataModel.sections;
9191

9292
As an immutable object, all of the properties and methods in `TLIndexPathDataModel` are read-only. So using the data model is very straightforward once you've selected the appropriate initializer.
9393

94-
###TLIndexPathUpdates
94+
### TLIndexPathUpdates
9595

9696
`TLIndexPathUpdates` is a companion class to `TLIndexPathDataModel` for batch updates. You provide two versions of your data model to the initializer and the inserts, deletes, and moves are calculated. Then call either `performBatchUpdatesOnTableView:` or `performBatchUpdatesOnCollectionView:` to perform the updates.
9797

@@ -113,7 +113,7 @@ TLIndexPathUpdates *updates = [[TLIndexPathUpdates alloc] initWithOldDataModel:o
113113
114114
Thats all it takes!
115115
116-
###TLIndexPathController
116+
### TLIndexPathController
117117
118118
`TLIndexPathController` is TLIndexPathTools' version of `NSFetchedResultsController`. It should not come as a surprise, then, that you must use this class if you want to integrate with Core Data.
119119
@@ -199,7 +199,7 @@ The `willUpdateDataModel` delegate method is a really cool feature of `TLIndexPa
199199
}
200200
```
201201

202-
###TLTableViewController & TLCollectionViewController
202+
### TLTableViewController & TLCollectionViewController
203203

204204
`TLTableViewController` and `TLCollectionViewController` are table and collection view base classes that use `TLIndexPathController` and implement the essential data source and delegate methods to get you up and running quickly. Both classes look much like the code outlined above for integrating with `TLIndexPathController`.
205205

@@ -209,7 +209,7 @@ Both classes support view controller-backed cells. Enabling this feature is as e
209209

210210
Most of the sample projects are based on `TLTableViewController` or `TLCollectionViewController`, so a brief perusal will give you a good idea what can be accomplished with a few lines of code.
211211

212-
##Documentation
212+
## Documentation
213213

214214
The Xcode docset can be generated by running the Docset project. The build configuration assumes [Appledoc][6] is installed at /usr/local/bin/appledoc. This can be changed at TLIndexPathTools project | Docset target | Build Phases tab | Run Script.
215215

0 commit comments

Comments
 (0)