본문 바로가기

XCode

iOS - Single View Application with Core Data setting in XCode 4.5 Here is I have learned from scratch. 1. Create Single View Application in Xcode project from File -> New -> Project 2. Add Core Data framework. 3. Add below codes to myproject_Prefix.pch#import 4. Add following codes to AppDelegate.h file. @property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext; @property (readonly, strong, nonatomic) NSManagedObjectModel *managedObj.. 더보기
iOS - Core Location Core Location 의 특징에 대해서 알아 보는 시간을 가져 볼까한다. Core Location uses a fair amount of power while it's running, so it's best to shut it down if you don't need it. Core Location will try to cache previous position information so it can give you something as quickly as possible. Because of this, if you're really concerned about accuracy, you should check the timestamp sent along with the position informa.. 더보기
Managed Object Context Managed Object Context - NSManagedObjectContext - From Head First iPhone & iPad development 2nd edition If you want to create a new instance of an NSManagedObject, you just do this: [NSEntityDescription insertNewObjectForEntityForName:@"Fugitive" in ManagedObjectContext:managedObjectContext];. The Managed Object Context is provided right from the start.Most Core Data load/save operations point t.. 더보기
The Data Model About Core Data For future reference, I've written this from Head First iPhone and iPad Development (2nd edition) The Data Model Works with entities that have properties called attributes.Can be edited directly in Xcode.Has several different data types. Core Data Provides stack that manages the data so you don't have to.Can manage different types of data.Great for memory management and tracking .. 더보기
iOS 개념정리 - Scroll View, NSSortDescriptor, Notifications, Table View Editing iOS 를 공부하면 할 수록 재미있다. 더욱이 4년 가량 Console Application 만 개발하는 필자로서는 iPhone 개발이 개발과 동시에 테스트 및 실행이 바로 눈에 보여지기 때문에 정말 재미있다. 오늘은 새롭게 배운 개념들을 정리하기 위해서 글을 포스팅 해볼까 한다. (Head First iPhone & iPad 개발 이라는 책에서 개념 설명들을 발췌하였고, iOS Reference 에서도 발췌하였다.) 항상 생각하는 것이지만, 배운 것을 글로 쓴다는 것은 기억력 향상에 도움을 준다. 이는 몸소 느끼는 것이다. :) 1. Scroll View - 렌즈와 같은 일을 수행하는데, 뭔가 하냐면, 필요한 View 만 보여주고, 다른 것은 스크롤시키는 기능을 한다. 즉, 앱에서 보여주어야 할 내용이.. 더보기