Computer Science/ios
food chart
// // BarChartView.h // BarChart // // Created by Park Jong Pil on 11. 7. 25.. // Copyright 2011년 Reciper. All rights reserved. // #import @interface FoodBarChartComponent : NSObject { NSString *xValue; float yValue; } @property (nonatomic, retain) NSString *xValue; @property (nonatomic, assign) float yValue; @end #define X_LABEL_COUNT 10 #define Y_LABEL_COUNT 10 @interface FoodBarChartView : UI..
muaic chart
// TestStoryboard // // Created by SWU CSE on 12. 11. 13.. // Copyright (c) 2012년 Apple10. All rights reserved. // #import "RootViewController.h" @interface RootViewController () @end @implementation RootViewController - (void)viewDidLoad{ [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; [self initCoreData]; [self performFetch]; } - (void)viewDidUnload{ [super viewDidUnload..
ManagedObject & EntityDescription 얻기
1. ManagedObjectContext 생성 → *context대부분의 CoreData메소드들은 ManagedObjectContext를 요구한다. 따라서 Context의 참조값을 얻는 방법에 대해서 알아보자 이를위해서는 delegate를 확인하고 delegate오브젝트의 managedContextObject메서드를 호출하자 AppDelegate *appDelegate =[[UIApplication sharedApplication] delegate]; NSManagedObjectContext *context = [appDelegate managedObjectContext]; 2. ManagedObject (EntityDescription) 생성 → *newRecommend NSEntityDescript..