목록분류 전체보기 (43)
꿈꾸는 개발자

32bitlong* value = (long*) [characteristic.value bytes]; //-> (long *) value = 0x12345678 64bitlong* value = (long*) [characteristic.value bytes]; //-> (long *) value = 0x0000000123456780 각각 빌드하였을때 값이 달라진 경우 #ifdef __LP64__NSLog(@"64-bit");int* value = (int*) [characteristic.value bytes];#elseNSLog(@"32-bit");long* value = (long*) [characteristic.value bytes]; #endif 으로 수정해준다. 참조: http://ip..

UITableViewCellEditingStyleDelete모드에서 swipe로 cell을 삭제할때 간헐적으로 죽는 문제 -(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{............ dispatch_async(dispatch_get_main_queue(), ^{[tableView reloadData];});} thread로 처리.
- ln명령어 # ln -s ./orign ./link (링크생성) # ln -ld link (링크확인) - File :: 생성 # mv file1 file2 (file1을 file2로 이름변경) # mkdir CreateDir (CreateDir라는 directory 생성) # mv directory1 directory2 (directory1의 내용을 directory2로 이동) ::복사 # cp -r test.txt directory (test.txt파일을 directory폴더로 복사) :: 접근모드 # chmod 755 filetest.c (filetest.c파일에 권한이 755로 변경, ) ABC (A: 소유자권한 B: 그룹권한 C:기타사용자, 4:읽기허용 2: 쓰기허용 1:실행허용) :: 삭제 ..