This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDelegate.m | |
// NanoCompanion | |
// | |
// Created by Steven Troughton-Smith on 13/01/2015. | |
// Copyright (c) 2015 High Caffeine Content. All rights reserved. | |
// | |
#import "AppDelegate.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0")) { | |
//HACK iOS 6 does not retain correctly, causing a refcount of -1, creating a NSZombie | |
CFBridgingRetain(self.fetchedResultsController.fetchRequest.affectedStores); | |
} | |
[self.fetchedResultsController performFetch:&error]; |