'cookbook'에 해당되는 글 1건

  1. 2010.06.24 The iPhone Developers Cookbook
아이폰어플개발정보2010. 6. 24. 14:13
The iPhone Developers Cookbook
Cookbook is loaded with heaps of tricks. These are some notes from the book.

* Origin

- Quartz: bottom left

- UIViews: top left

* screenshotting (non-public API)

@interface UIApplication (Extended)

-(void) _writeApplicationSnapshot;


[[UIApplication sharedApplication] _writeApplicationSnapshot];

* Transition

- CATransition class: applied to the view's default layer

- UIView's built-in transition animation

* Audio service interfering with iPod audio

- Celestial: do interfere

- System Audio service: doesn't interfere

* MPMoviePlayerController plays by its own rules.You do not push it onto a navigation stack.You do not invoke it modally. Instead, you create it and tell it to play.

: Supported file types include MOV, MP4, MPV, M4V, and 3GP, as well as MP3, AIFF, M4A.

* Reading in Text Data

NSString *path = [[NSBundle defaultBundle] pathForResource:@"myText" ofType:@"txt"]; NSString *fileText = [NSString stringWithContentsOfFile:path encoding: NSUTF8StringEncoding error:nil];

* Writing out Text Data

NSError *error; [myString writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:&error];

* Reading in plist file

NSDictionary *plist = [NSMutableDictionary dictionaryWithContentsOfFile:PLISTPATH];

if (plist) textView.text = [plist description]; else textView.text = @"Could not read property list from file";

* Core location

1. GPS or SkyHook WiFi

2. Google Maps cell tower location

3. SkyHook Internet provider location

Gus Mueller’s FMDB Cocoa wrappers: http://gusmueller.com/x/fmdb.zip

Send a simple SQLite call as an NSString query ([db executeQuery:@"select * from call"])

출처 : http://blog.naver.com/PostView.nhn?blogId=gonagi&logNo=150073447904

'아이폰어플개발정보' 카테고리의 다른 글

iPhone Human Interface Guidelines  (0) 2010.06.24
iPhone Games Projects  (0) 2010.06.24
The iPhone Developers Cookbook  (0) 2010.06.24
Memory Management Programming Guide for Cocoa  (0) 2010.06.24
iPhone Development Guide  (0) 2010.06.24
Quartz2D로 한글 그리기..  (0) 2010.06.24
Posted by 오늘마감

댓글을 달아 주세요