我像这样从 API 获取字符串
New version of WhatsApp Messenger is
now available.
JANUARY 12, 2013
Your upgrade will bring improvements, larger
group chats and new features such as
Profile Photos!
有没有办法从上面的字符串中获取段落?
我用了 NSArray *paragraphs = [result componentsSeparatedByString:@"\n"];
根据我的要求,它应该有 3 个字符串
paragraphs= {
"New version of WhatsApp Messenger is now available."
"JANUARY 12, 2013"
"Your upgrade will bring improvements, larger group chats and new features such as Profile Photos!"
}
但它回来了
paragraphs= {
"New version of WhatsApp Messenger is"
"now available."
"JANUARY 12, 2013"
"Your upgrade will bring improvements, larger"
"group chats and new features such as"
"Profile Photos!"
}