简体   繁体   English

如何在 iOS 上使用 Swift 将 10 个以上的 RSS 提要解析并组合成一个数组

[英]How to Parse and Combine More than 10 RSS Feed into one array using Swift on iOS

Im trying to implement a Feature into My Project using Swift that Parses and Combines more than 10 Feed into one array and displaying it into a UITableView.我正在尝试使用 Swift 在我的项目中实现一个功能,该功能将 10 个以上的 Feed 解析并组合到一个数组中,并将其显示到 UITableView 中。 The Array of RSS Links will come from a CoreData Entity that contains all the info about the RSS Feeds like title of the Feed, link, Description,pubDate and enclosure RSS URL. RSS 链接数组将来自一个 CoreData 实体,该实体包含有关 RSS 订阅源的所有信息,如订阅源标题、链接、描述、发布日期和附件 RSS URL。 But I Dont know how to parse each RSS URL and Combine them into an Array.但我不知道如何解析每个 RSS URL 并将它们组合成一个数组。

Take a look at看一眼

  • URLSession and URLRequest URLSessionURLRequest
  • JSONDecoder and Codable JSONDecoderCodable

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM