Contents

Views 30458 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
1. 문자열을 식별자 기준으로 배열로 나누기
(componentsSeparatedByString 메소드 사용)
NSString *string = @"one:two:three:four";
NSArray *chunks = [string componetsSeparatedByString: @":"];



2. 배열의 객체를 합쳐 하나의 문자열로 만들기
(componentsJoinedByString 메소드 사용)
string = [chunks componentsJoinedByString: @"-"];
결과 @"one-two-three-four"

?

  1. [ios] 테이블뷰셀/뷰에 배경 패턴 넣기..

  2. [linux] 랜카드가 2개 일 때 네트워크 설정

  3. [ios] iCloud관련 저장 디렉토리

  4. [mac] OSX(맥) 단축키 설명 ㅎㅎ

  5. [ios] Objective-C 문자열 잘라서 배열(NSArray)에 넣기

  6. [ios] NSMutableString 문자열 패턴 교환

  7. [linux] 리눅스 파일시스템과 디렉토리 설명

  8. [c++] mfc 파일 한줄씩 읽기.. ㅋㅋ

  9. [js] JSON 컨트롤.. 재귀호출로 값 출력하기

  10. [doc] 테크니컬 레포트 (BHO 취약점을 이용한 공격)

  11. [mysql] mysql user 생성시 ERROR 1364

  12. [android] 단일 Thread 환경의 안드로이드에서 Handler를 사용

Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 ... 99 Next
/ 99