외규장각 도서 환수 모금 캠페인

'2014/04'에 해당되는 글 2건

  1. 2014.04.28 custom cell 안의 버튼 동작 시키기
  2. 2014.04.07 Local Data Storage

1. UITableView *tableView = (UITableView *)self.superview.superview;

    NSIndexPath *path = [tableView indexPathForCell:self];

    [tableView.delegate tableView:tableView didSelectRowAtIndexPath:path];


2. cell tag 연결 후 addTarget 하여 methhod 등록

Posted by 닉네임영역
,

1. NSUserDefaults : Dictionary 형태의 메모리 저장소

example>

// init

[NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];

// get

[defaults objectForKey:@"Key"];

// set

NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:@"Key", @"Value", nil];

[defaults registerDefaults:dictionary];


2. CoreData : Database를 wrap 한 저장소

[Update 예정]


3. Sqlite : Database

[Update 예정]


4. Plist : DIctionary 형태의 파일 저장소

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

NSString *filePath = [documentsDirectory stringByAppendingString:@"/userInfo.plist"];

NSMutableDictionary *plist = [[NSMutableDictionary alloc] init];

[plist setValue:@"Value" forKey:@"Key"];

[plist writeToFile:filePath atomically:YES];


5. Keychain : 폰 내부에 같은 도메인끼리 참조 할 수 있는 데이터 저장소


Posted by 닉네임영역
,


사랑합니다. 편안히 잠드소서