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
// Copy <Database> to runtime location in Documents directory and open data store. | |
- (void) init<Database> | |
{ | |
/* Get URL of Documents directory. It returns all matching | |
directories in the domain but should only see one and it | |
is in location 0 of the array (or "lastObject") | |
*/ | |
NSArray *tempURLs = [[NSFileManager defaultManager] URLsForDirectory: NSDocumentDirectory inDomains:NSUserDomainMask]; | |
NSURL *documentsURL = [tempURLs lastObject]; |
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
- (void) tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { | |
NSLog(@"Detail Disclosure Tapped"); | |
// Set expanded cell then tell tableView to redraw with animation | |
self.expandedRow = indexPath; | |
[self.tableView beginUpdates]; | |
[self.tableView endUpdates]; | |
} | |
- (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { | |