Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 有可能在两个字符串之间找到字符串吗?_Iphone_Swift_Swift3 - Fatal编程技术网

Iphone 有可能在两个字符串之间找到字符串吗?

Iphone 有可能在两个字符串之间找到字符串吗?,iphone,swift,swift3,Iphone,Swift,Swift3,我试图分阶段生成html,我想在div类中获得字符串,如 <div class = "ContentGrid"> xxxxxxxx </div> ....some content <div class = "ContentGrid"> xxxxxxxx </div> ....some content <div class = "ContentGrid"> xxxxxxxx </d

我试图分阶段生成html,我想在div类中获得字符串,如

    <div class = "ContentGrid"> xxxxxxxx     </div> 
....some content
    <div class = "ContentGrid"> xxxxxxxx     </div> 
....some content
    <div class = "ContentGrid"> xxxxxxxx     </div> 
xxxxxxxx
……一些内容
xxxxxxxx
……一些内容
xxxxxxxx

是否可以将ContentGrid中的所有字符串xxxxxxxx存储在一个数组中?非常感谢

什么是“阶段a html”?你是说解析一个HTML页面吗?你应该使用这样的库。@EricAya,是的,只是一个打字错误,谢谢你的建议,我稍后会尝试。可能重复“阶段a html”的意思?你是说解析一个HTML页面吗?你应该使用这样的库。@EricAya,是的,只是一个打字错误,谢谢你的建议,我稍后会试试。可能是