Contents

Views 29459 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] Locale Identifiers

    Date2018.11.29 CategoryDevelop Byhooni Views1748
    Read More
  2. [ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기

    Date2015.10.23 CategoryDevelop Byhooni Views1308
    Read More
  3. [ios] None IB vs. StoryBoard 샘플 소스

    Date2013.09.06 CategoryDevelop Byhooni Views17025
    Read More
  4. [ios] NSData to NSString (NSString to NSData)

    Date2015.07.21 CategoryDevelop Byhooni Views738
    Read More
  5. [ios] NSData 클래스에 대해 (NSData <-> char*)

    Date2013.04.23 CategoryDevelop Byhooni Views26597
    Read More
  6. [ios] NSMutableString 문자열 패턴 교환

    Date2013.04.23 CategoryDevelop Byhooni Views29028
    Read More
  7. [ios] NSNotificationCenter 초간단 사용 예~ ㅋㄷ

    Date2015.06.26 CategoryDevelop Byhooni Views761
    Read More
  8. [ios] NSString URL Encode/Decode (인코딩/디코딩)

    Date2014.05.02 CategoryDevelop Byhooni Views3500
    Read More
  9. [ios] NSString 간단한 정규식 사용법

    Date2014.01.28 CategoryDevelop Byhooni Views18272
    Read More
  10. [ios] NSString, RegularExpression Find/Replace

    Date2017.04.14 CategoryDevelop Byhooni Views966
    Read More
  11. [ios] Objective-C Types & Storage Capacity

    Date2015.07.22 CategoryDevelop Byhooni Views1264
    Read More
  12. [ios] Objective-C 문자열 잘라서 배열(NSArray)에 넣기

    Date2013.04.23 CategoryDevelop Byhooni Views29459
    Read More
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 ... 71 Next
/ 71