Objective-C、iPhone RSS 阅读器应用程序查询 - 如何将 RSS 提要显示组织成组?
我的编程非常不幸。我对 Objective-C 还很陌生,但我正在努力尽快学习。
我需要完成一个适用于 iPhone 的 RSS 阅读器应用程序,这是一个相对简单的应用程序,它解析 rss 提要,将其显示在导航表视图中,当您单击一篇文章时,您将被带到主页。
不幸的是,我在解析方面遇到困难。目前,该程序下载所有文章,但我想将其显示在 10 篇文章的列表中,并在底部添加一个“下一步”按钮。单击下一个按钮后,解析将继续,并显示接下来的 10 个。
很抱歉,我无法向您展示我目前正在使用的代码,因为我在家用计算机上,而该项目在办公室 Mac 上。如果有人能给我一些想法,我将不胜感激。我尝试了多种方法(例如,制作一个额外的数组作为文章计数器,以便我可以记录哪篇文章属于哪个列表),但我不断遇到障碍,因为我只是不知道如何很好地使用该程序足以做到这一点。
拜托,我很需要帮助!谢谢。
I've been very unfortunate with my programming. I am still rather new to Objective-C, but I am trying to learn as quickly as possible.
I need to complete an RSS Reader for iPhones application, a relatively simple one which parses the rss feed, displays it in a navigation-table view and when you click on an article you are taken to a main page.
Unfortunately, I am having difficulty with the parsing aspect. Currently, the program downloads all the articles, but I would like to display it in lists of 10, along with a next button at the bottom. Once the next button is clicked, the parsing continues and the next 10 are on display.
I am sorry but I cannot show you the code I am using at the moment as I am on my home computer and the project is on the office mac. If anyone could give me some Ideas i would be most grateful. I have tried a number of methods (making an additional array to act as an article counter so I could record which article is which for which list, for example) but i keep running into roadblocks as I just dont know how to use the program well enough to do that.
Please, I am in a lot of need! Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(这又是我)
如果这相当模糊,我很抱歉,但我相信我可以提供示例代码。我试图让程序在解析 10 篇文章后暂停解析,显示这 10 篇文章,然后继续解析并在按下下一个按钮时显示另外 10 篇文章。
在 parser.m 中,我写了:
}
我还有 didEndElement 和 Found 字符部分:
}
我在格式化日期方面也遇到了一些问题,但这是一个小问题。
另外:
}
如果有人能给我一些关于如何暂停程序的提示...或者允许我以 10 组为一组进行解析...我不知所措;_;
感谢您抽出时间。
(This is me again)
I am sorry if this is rather vague, but I believe I can give sample code. I am trying to make it that the program pauses parsing after 10 articles are parsed, displays those 10, then continues parsing and displaying another 10 if a next button is pressed.
In the parser.m, i have written:
}
I also have the didEndElement and Found characters section:
}
I have also been having some issues with formatting the date, but thats a minor issue.
also:
}
I would be most grateful if someone could give me a tip on what to do to pause the program...or allow me to parse in groups of 10...I am at a loss ;_;
Thank you for your time.