Skip to content

Instantly share code, notes, and snippets.

@gfontenot
gfontenot / gist:724326
Created December 1, 2010 22:11
Method to change to NSFetchedResultsController dynamically
-(void)createFetchedResultsControllerWithSortOption:(NSInteger)sortOption animated:(BOOL)animated {
self.fetchedResultsController.delegate = nil;
self.fetchedResultsController = nil;
[fetchedResultsController release];
if (animated) {
NSMutableIndexSet *sectionsToDelete = [[NSMutableIndexSet alloc] init];
for (int i = 0; i < [self.tableView numberOfSections]; i ++) {
[sectionsToDelete addIndex:i];
}
@gonecoding
gonecoding / Readme.markdown
Created February 22, 2011 12:42
Adding methods to NSData and NSString using categories to provide AES256 encryption on iOS

Important notice

I took down this Gist due to concerns about the security of the encryption/decryption part of this code (see comments below).

Rob Napier (@rnapier) has created a publicly available class that provides similar AES encryption/decryption functionality at https://github.com/rnapier/RNCryptor.