Computer Science/ios

    [iOS개발 강의] (2 주차) swift 기본문법 2

    Closure 클로저 클로저란? Swift 공식사이트 정의 Closures are self-contained blocks of functionality that can be passed around and used in your code. 클로저는 전달되고 코드에서 사용할 수 있는 자체 포함된 기능 블록입니다. Closures in Swift are similar to blocks in C and Objective-C and to lambdas in other programming languages. Swift의 클로저는 C 및 Objective-C의 블록 및 다른 프로그래밍 언어의 람다와 유사합니다. Closures can capture and store references to any constant..

    [iOS개발 강의] (1 주차) swift 기본문법

    아이폰 앱 제작을 위한 개발환경 (툴/ 언어) Xcode Apple의 macOS, iOS, watchOS 및 tvOS용 소프트웨어 개발을 위한 IDE. 엑스코드라 읽으며, macOS 전용이다. 2021년 02월 18일 기준 최신 버전은 12.4이다. 2003년에 출시되어, 무려 17년이 넘는 역사를 가지고 있는 장수 IDE이다. 만약 그 전신인 Project Builder까지 연대기에 넣는다면 1988년출시로, 무려 30년 이상의 역사를 자랑하는 IDE가 된다. Apple 환경에서는 Xcode보다 제품에 깊숙이 관여하는 IDE는 존재하지 않는다. Windows 환경의 Visual Studio와 비슷한 위상이다. JetBrains의 AppCode나 Android Studio, 또는 MS의 Visual St..

    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..