且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

尽管有 mysql 条目,但 NSArray 在 iOS 中为空

更新时间:2023-12-04 16:13:16

我不知道您是否在其他地方拥有它们,但是您缺少 2 个我在进行 .xml 解析时一直使用的方法:foundCharacters 和didEndElement.我关注了本教程集(全部 3 个视频 - 价值约 40 分钟),在几个不同的实例上使用它之后,它真的帮助我理解了如何使用 NSXMLParsers.也许尝试遵循他的方法,看看是否可以为您解决问题.

I don't know if you maybe have them somewhere else, but you're missing 2 methods I've always used when doing .xml parsing: foundCharacters and didEndElement. I followed this tutorial set (all 3 videos - about 40 min worth), and after using it on a couple different instances it really helped me understand how to use the NSXMLParsers. Maybe try following his methods and see if that clears things up for you.