私がこれを持っているとしましょう:
NSString *str = @"This is a sample string";
各単語がNSMutableArrayに追加されるように文字列を分割するにはどうすればよいですか?
VB.netでは、次のことができます。
Dim str As String
Dim strArr() As String
Dim count As Integer
str = "vb.net split test"
strArr = str.Split(" ")
For count = 0 To strArr.Length - 1
MsgBox(strArr(count))
Next
では、Objective-Cでこれを行う方法は?ありがとう