mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Added a delegate method tableControllerDidFinishFinalLoad:
The method name stinks, but we need a callback in didFinishLoad, one that gets called when done loading loading from Core Data, static, or from the network.
This commit is contained in:
committed by
Blake Watters
parent
8a77a18465
commit
a4f685694a
4
Code/UI/RKAbstractTableController.h
Normal file → Executable file
4
Code/UI/RKAbstractTableController.h
Normal file → Executable file
@@ -278,6 +278,10 @@ extern NSString* const RKTableControllerDidBecomeOffline;
|
||||
- (void)tableControllerDidCancelLoad:(RKAbstractTableController *)tableController;
|
||||
- (void)tableController:(RKAbstractTableController *)tableController didLoadObjects:(NSArray*)objects inSection:(NSUInteger)sectionIndex;
|
||||
|
||||
/** Sent to the delegate when the controller is really and truly finished loading/updating, whether from the network or from Core Data, or from static data, ... this happens in didFinishLoading
|
||||
**/
|
||||
- (void)tableControllerDidFinishFinalLoad:(RKAbstractTableController *)tableController;
|
||||
|
||||
/**
|
||||
Sent to the delegate when the content of the table view has become empty
|
||||
*/
|
||||
|
||||
3
Code/UI/RKAbstractTableController.m
Normal file → Executable file
3
Code/UI/RKAbstractTableController.m
Normal file → Executable file
@@ -747,6 +747,9 @@ static NSString* lastUpdatedDateDictionaryKey = @"lastUpdatedDateDictionaryKey";
|
||||
[self updateOfflineImageForOnlineState:[self isOnline]];
|
||||
|
||||
[self resetOverlayView];
|
||||
|
||||
if (self.delegate && [_delegate respondsToSelector:@selector(tableControllerDidFinishFinalLoad:)])
|
||||
[_delegate performSelector:@selector(tableControllerDidFinishFinalLoad:)];
|
||||
}
|
||||
|
||||
#pragma mark - Table Overlay Views
|
||||
|
||||
Reference in New Issue
Block a user