This file contains 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
// | |
// CoreDataHelper.m | |
// Wired In | |
// | |
// Created by Caleb Hicks on 6/20/14. | |
// | |
// Readme: I use a version of this file in each Core Data project I create. It runs as a Shared Instance. | |
// Simply, it returns the default Managed Object Context for the app. Sample methods also provided to save, create sample | |
// data, and log all data within the app. Adjust the Imports and related methods for your model objects. | |
// |
This file contains 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
- (NSFetchedResultsController *)fetchedResultsController | |
{ | |
if (_fetchedResultsController != nil) | |
{ | |
return _fetchedResultsController; | |
} | |
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; | |
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Tag" inManagedObjectContext:[CoreDataHelper sharedInstance].managedObjectContext]; | |
[fetchRequest setEntity:entity]; |
This file contains 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
-(UITableView *) parentTableView { | |
// iterate up the view hierarchy to find the table containing this cell/view | |
UIView *aView = self.superview; | |
while(aView != nil) { | |
if([aView isKindOfClass:[UITableView class]]) { | |
return (UITableView *)aView; | |
} | |
aView = aView.superview; | |
} | |
This file contains 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
// | |
// NTOnboardController.m | |
// | |
// Created by Caleb Hicks on 7/10/14. | |
// | |
// Readme: Subscribe to the notification for onboardedKey where you want to run something for onboarding. | |
// In your App Delegate or initial view controller, insantiate NTOnboardController and call -checkOnboarded. | |
// NTOnboardController will send the onboardedKey notification if the user has not been onboarded. | |
// | |
// Enjoy! Comment or @calebhicks with questions. |
This file contains 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
// | |
// WIAccountTableViewController.m | |
// Wired In | |
// | |
// Created by Caleb Hicks on 7/17/14. | |
// Copyright (c) 2014 We Are Wired In. All rights reserved. | |
// | |
#import "WIAccountTableViewController.h" | |
#import <Parse/Parse.h> |
This file contains 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
// goes above interface and implementation | |
typedef NS_ENUM(NSInteger, ActionSheetButton){ | |
ActionSheetFromLibrary, | |
ActionSheetTakePicture | |
}; | |
#import <MobileCoreServices/MobileCoreServices.h> | |
// methods |
This file contains 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
// | |
// Settings.m | |
// Sample | |
// | |
// Created by Caleb Hicks on 7/2/14. | |
// Copyright (c) 2014 Caleb Hicks. All rights reserved. | |
// | |
#import "Settings.h" |
This file contains 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
// | |
// POTimer.h | |
// Wired In | |
// | |
// Created by Caleb Hicks on 6/23/14. | |
// Copyright (c) 2014 Caleb Hicks. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains 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
// | |
// ViewController.m | |
// UIColorCategory | |
// | |
// Created by Caleb Hicks on 2/21/15. | |
// Copyright (c) 2015 DevMountain. All rights reserved. | |
// | |
#import "ViewController.h" |
This file contains 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
// | |
// SSInAppPurchaseController.h | |
// SimpleStore | |
// | |
// Created by Joshua Howland on 7/2/14. | |
// Copyright (c) 2014 DevMountain. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <StoreKit/StoreKit.h> |
OlderNewer