Objective C version of explode()?

前端 未结 1 1911
孤独总比滥情好
孤独总比滥情好 2020-12-29 22:15

If I want to explode a string by parts in PHP into an array, I have the nifty explode() function where I just do the following

$mystring = \"HI:THERE:HOW\";
         


        
相关标签:
1条回答
  • 2020-12-29 22:33
    NSArray *stringArray = [myString componentsSeparatedByString:@":"];
    
    0 讨论(0)
提交回复
热议问题