Skip to content

Instantly share code, notes, and snippets.

#import <Foundation/Foundation.h>
#define kPreviousSearchEntityKey @"PreviousSearchEntity"
#define kPreviousSearchKey @"PreviousSearch"
#define kIDKey @"ID"
#define kTextKey @"Text"
#define kCategoryKey @"Category"
#define kCategoryIdentifierKey @"CategoryIdentifierKey"
@todd1251
todd1251 / gist:1161262
Created August 21, 2011 22:21
Working with Core Plot trunk as at 22/08/2011
// Modified from: http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application
// NOTE: needs -load_all linker flag; might not be quite right - red/blue data line styles are not working
- (void)viewDidLoad
{
[super viewDidLoad];
graph = [[CPTXYGraph alloc] initWithFrame: self.view.bounds];
CPTGraphHostingView *hostingView = (CPTGraphHostingView *)self.view;