From 74e797c6fd97fee519c931b42b9a9d3e1549de54 Mon Sep 17 00:00:00 2001 From: PhilCai Date: Fri, 10 Feb 2017 08:57:19 -0800 Subject: [PATCH] Fix some IGCollectionView unavaliable methods hint Summary: - [x] All tests pass. Demo project builds and runs. - [ ] I added tests, an experiment, or detailed why my change isn't tested. - [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) I guess there's some mistake in unavailable hints Closes https://github.com/Instagram/IGListKit/pull/479 Differential Revision: D4543489 Pulled By: rnystrom fbshipit-source-id: fb925fad04d2931fbfd0e26a87d36f85eee0b2e9 --- Source/IGListCollectionView.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/IGListCollectionView.h b/Source/IGListCollectionView.h index dcd85d02..66b060c8 100644 --- a/Source/IGListCollectionView.h +++ b/Source/IGListCollectionView.h @@ -23,7 +23,7 @@ IGLK_SUBCLASSING_RESTRICTED :nodoc: */ - (void)performBatchUpdates:(void (^)(void))updates - completion:(void (^)(BOOL))completion IGLK_UNAVAILABLE("Call -[IGListAdapter performUpdatesWithCompletion:] instead"); + completion:(void (^)(BOOL))completion IGLK_UNAVAILABLE("Call -[IGListAdapter performUpdatesAnimated:completion:] instead"); /** :nodoc: @@ -33,37 +33,37 @@ IGLK_SUBCLASSING_RESTRICTED /** :nodoc: */ -- (void)reloadSections:(NSIndexSet *)sections IGLK_UNAVAILABLE("Call -[IGListAdapter reloadItems:] instead"); +- (void)reloadSections:(NSIndexSet *)sections IGLK_UNAVAILABLE("Call -[IGListAdapter reloadObjects:] instead"); /** :nodoc: */ -- (void)insertSections:(NSIndexSet *)sections IGLK_UNAVAILABLE("Call -[IGListAdapter performUpdatesWithCompletion:] instead"); +- (void)insertSections:(NSIndexSet *)sections IGLK_UNAVAILABLE("Call -[IGListAdapter performUpdatesAnimated:completion:] instead"); /** :nodoc: */ -- (void)deleteSections:(NSIndexSet *)sections IGLK_UNAVAILABLE("Call -[IGListAdapter performUpdatesWithCompletion:] instead"); +- (void)deleteSections:(NSIndexSet *)sections IGLK_UNAVAILABLE("Call -[IGListAdapter performUpdatesAnimated:completion:] instead"); /** :nodoc: */ -- (void)moveSection:(NSInteger)section toSection:(NSInteger)newSection IGLK_UNAVAILABLE("Call -[IGListAdapter performUpdatesWithCompletion:] instead"); +- (void)moveSection:(NSInteger)section toSection:(NSInteger)newSection IGLK_UNAVAILABLE("Call -[IGListAdapter performUpdatesAnimated:completion:] instead"); /** :nodoc: */ -- (void)insertItemsAtIndexPaths:(NSArray *)indexPaths IGLK_UNAVAILABLE("Call -[ insertSectionController:forItems:completion:] instead"); +- (void)insertItemsAtIndexPaths:(NSArray *)indexPaths IGLK_UNAVAILABLE("Call -[ insertInSectionController:atIndexes:] instead"); /** :nodoc: */ -- (void)reloadItemsAtIndexPaths:(NSArray *)indexPaths IGLK_UNAVAILABLE("Call -[ reloadSectionController:forItems:completion:] instead"); +- (void)reloadItemsAtIndexPaths:(NSArray *)indexPaths IGLK_UNAVAILABLE("Call -[ reloadInSectionController:atIndexes:] instead"); /** :nodoc: */ -- (void)deleteItemsAtIndexPaths:(NSArray *)indexPaths IGLK_UNAVAILABLE("Call -[ deleteSectionController:forItems:completion:] instead"); +- (void)deleteItemsAtIndexPaths:(NSArray *)indexPaths IGLK_UNAVAILABLE("Call -[ deleteInSectionController:atIndexes:] instead"); /** :nodoc: