how to split strings in objective c

前端 未结 4 1577
不知归路
不知归路 2020-12-17 19:32

How to split a string in objective-C? I am working on an short application that contains a date picker. I do display date get it from date picker and display it through a la

4条回答
  •  孤城傲影
    2020-12-17 20:00

    Use something like [yourString componentsSeparatedByString:@"/"]. You will get an NSArray of separated strings.

提交回复
热议问题