From d61a1115f81440baafb01256e870d15526cec239 Mon Sep 17 00:00:00 2001 From: Roman Efimov Date: Tue, 18 Jun 2013 12:09:27 -0400 Subject: [PATCH 1/4] Update README.md --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 15d8b48..3fabf07 100644 --- a/README.md +++ b/README.md @@ -254,19 +254,19 @@ find out how default mapping is performed: ``` objective-c - (void)setDefaultMapping { - [self registerClass:@"__NSCFConstantString" forCellWithReuseIdentifier:@"RETableViewCell"]; - [self registerClass:@"__NSCFString" forCellWithReuseIdentifier:@"RETableViewCell"]; - [self registerClass:@"NSString" forCellWithReuseIdentifier:@"RETableViewCell"]; - [self registerClass:@"RETableViewItem" forCellWithReuseIdentifier:@"RETableViewCell"]; - [self registerClass:@"RERadioItem" forCellWithReuseIdentifier:@"RETableViewCell"]; - [self registerClass:@"REBoolItem" forCellWithReuseIdentifier:@"RETableViewBoolCell"]; - [self registerClass:@"RETextItem" forCellWithReuseIdentifier:@"RETableViewTextCell"]; - [self registerClass:@"RELongTextItem" forCellWithReuseIdentifier:@"RETableViewLongTextCell"]; - [self registerClass:@"RENumberItem" forCellWithReuseIdentifier:@"RETableViewNumberCell"]; - [self registerClass:@"REFloatItem" forCellWithReuseIdentifier:@"RETableViewFloatCell"]; - [self registerClass:@"REDateTimeItem" forCellWithReuseIdentifier:@"RETableViewDateTimeCell"]; - [self registerClass:@"RECreditCardItem" forCellWithReuseIdentifier:@"RETableViewCreditCardCell"]; - [self registerClass:@"REMultipleChoiceItem" forCellWithReuseIdentifier:@"RETableViewCell"]; + self[@"__NSCFConstantString"] = @"RETableViewCell"; + self[@"__NSCFString"] = @"RETableViewCell"; + self[@"NSString"] = @"RETableViewCell"; + self[@"RETableViewItem"] = @"RETableViewCell"; + self[@"RERadioItem"] = @"RETableViewOptionCell"; + self[@"REBoolItem"] = @"RETableViewBoolCell"; + self[@"RETextItem"] = @"RETableViewTextCell"; + self[@"RELongTextItem"] = @"RETableViewLongTextCell"; + self[@"RENumberItem"] = @"RETableViewNumberCell"; + self[@"REFloatItem"] = @"RETableViewFloatCell"; + self[@"REDateTimeItem"] = @"RETableViewDateTimeCell"; + self[@"RECreditCardItem"] = @"RETableViewCreditCardCell"; + self[@"REMultipleChoiceItem"] = @"RETableViewOptionCell"; } ``` From d032ee048d0e4107481e628bbba7ce422cd46e3c Mon Sep 17 00:00:00 2001 From: Roman Efimov Date: Tue, 18 Jun 2013 11:09:53 -0500 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3fabf07..205eabf 100644 --- a/README.md +++ b/README.md @@ -245,7 +245,7 @@ It's super easy to create custom mappings, the concept is similiar to `UICollect For example, this how all `NSString` objects are being mapped with `RETableViewCell`: ``` objective-c -[_tableViewManager registerClass:@"NSString" forCellWithReuseIdentifier:@"RETableViewCell"]; +_tableViewManager[@"NSString"] = @"RETableViewCell"; ``` If you take a look at [RETableViewManager Source Code](https://github.com/romaonthego/RETableViewManager/blob/master/RETableViewManager/RETableViewManager.m) you may From 534e1dab4e6cf35afc36dc707992ab83987defb2 Mon Sep 17 00:00:00 2001 From: Roman Efimov Date: Tue, 18 Jun 2013 11:10:28 -0500 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 205eabf..a00af89 100644 --- a/README.md +++ b/README.md @@ -242,7 +242,7 @@ RETableViewSection *section = [RETableViewSection sectionWithHeaderView:myCustom ### Item to Cell Mapping Example It's super easy to create custom mappings, the concept is similiar to `UICollectionView`. -For example, this how all `NSString` objects are being mapped with `RETableViewCell`: +For example, this how all `NSString` objects are being mapped to `RETableViewCell`: ``` objective-c _tableViewManager[@"NSString"] = @"RETableViewCell"; From 4e1b6fc6c24ed38bd549345d6930622e1f4f5fb4 Mon Sep 17 00:00:00 2001 From: Roman Efimov Date: Tue, 18 Jun 2013 11:16:22 -0500 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a00af89..bfda22a 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,7 @@ If you take a look at [RETableViewManager Source Code](https://github.com/romaon find out how default mapping is performed: ``` objective-c -- (void)setDefaultMapping +- (void)registerDefaultClasses { self[@"__NSCFConstantString"] = @"RETableViewCell"; self[@"__NSCFString"] = @"RETableViewCell";