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
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
- (NSString *) platform; |
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
// Call this method somewhere in your view controller setup code. | |
- (void)registerForKeyboardNotifications | |
{ | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(keyboardWasShown:) | |
name:UIKeyboardDidShowNotification object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(keyboardWillBeHidden:) | |
name:UIKeyboardWillHideNotification object:nil]; |
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
#define DEGREES_TO_RADIANS(angle) ((angle) / 180.0 * M_PI) | |
#define RADIANS_TO_DEGREES(radians) ((radians) * (180.0 / M_PI)) |
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
#pragma mark - NSFetchedResultsControllerDelegate Methods | |
- (NSFetchedResultsController *)fetchedResultsController { | |
if (__fetchedResultsController != nil) { | |
return __fetchedResultsController; | |
} | |
/* | |
Set up the fetched results controller. | |
*/ | |
// Create the fetch request for the entity. | |
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; |
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
#import "NewCardViewController.h" | |
@interface NewCardViewController () | |
@end | |
@implementation NewCardViewController | |
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
// | |
// MyViewController.m | |
// Projeto | |
// | |
// Created by Thiago Ricieri on 24/07/12. | |
// Copyright (c) 2012. All rights reserved. | |
// | |
#import "MyViewController.h" |