添加用户后同步数据crash

This commit is contained in:
life
2015-11-08 22:46:33 +08:00
parent 8dbfdf9eb3
commit 2f476cefcb
6 changed files with 19 additions and 23 deletions

View File

@@ -23,7 +23,7 @@
#import <SGNavigationProgress/UINavigationController+SGProgress.h>
@interface NoteController ()<SWTableViewCellDelegate>
@interface NoteController()
@property (strong, nonatomic) NSIndexPath *indexPathToBeDeleted;
@property (strong, nonatomic) NSFetchedResultsController *searchedResultsController;
@@ -157,7 +157,7 @@
// table, search table view
[self setTableStyle:self.tableView];
[self setTableStyle:self.searchDisplayController.searchResultsTableView];
// [self setTableStyle:self.searchDisplayController.searchResultsTableView];
// isBlog ?
if(self.isBlog) {
@@ -420,9 +420,6 @@
// configure the cell
Note *note = [fetched objectAtIndexPath:indexPath];
[self.searchDisplayController.searchResultsTableView setSeparatorInset:UIEdgeInsetsZero];
[self.searchDisplayController.searchResultsTableView setLayoutMargins:UIEdgeInsetsZero];
static NSString *cellIdentifier2 = @"NoteCell2";
NoteCell *cell2 = [tableView dequeueReusableCellWithIdentifier:cellIdentifier2];
if (cell2 == nil) {
@@ -730,9 +727,6 @@
[tableView deleteSections:[NSIndexSet indexSetWithIndex:sectionIndex]
withRowAnimation:UITableViewRowAnimationFade];
break;
case NSFetchedResultsChangeUpdate:
case NSFetchedResultsChangeMove:
break;
}
}