mirror of
https://github.com/zhigang1992/NTDCoreDataTableViewController.git
synced 2026-01-13 16:22:57 +08:00
Extracted a new class: NTDCoreDataTableViewController.
Refactored some common things of a UITableViewController which is based on CoreData into this class.
This commit is contained in:
25
NTDCoreDataTableViewController.h
Normal file
25
NTDCoreDataTableViewController.h
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// CoreDataTableViewController.h
|
||||
//
|
||||
//
|
||||
// Created by Nicholas Tian on 3/2/14.
|
||||
// Copyright (c) 2014 Nicholas Tian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface NTDCoreDataTableViewController : UITableViewController
|
||||
|
||||
#pragma mark - Abstract Properties and Methods
|
||||
@property (nonatomic, strong) NSFetchedResultsController *fetchedResultsController;
|
||||
|
||||
// Returns identifier for UITableViewCell.
|
||||
- (NSString *)cellIdentifier;
|
||||
|
||||
// Called in tableView:cellForRowAtIndexPath:.
|
||||
- (void)configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath;
|
||||
|
||||
// Called in the getter of fetchedResultsController.
|
||||
- (NSFetchedResultsController *)newFetchedResultsController;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user