WikiApiObjectiveC:用于访问 Wikipedia API 的 Objective-C 库

时间:2021-06-11 06:26:48
【文件属性】:
文件名称:WikiApiObjectiveC:用于访问 Wikipedia API 的 Objective-C 库
文件大小:196KB
文件格式:ZIP
更新时间:2021-06-11 06:26:48
Objective-C WikiApiObjectiveC: 使用这个库,您可以通过给定的搜索词异步检索 html 页面和文章的主图像。 用法: 以下是您应该如何使用 WikipediaHelper 类的示例: WikipediaHelper *wikiHelper = [[WikipediaHelper alloc] init]; wikiHelper.apiUrl = @"http://en.wikipedia.org"; wikiHelper.delegate = self; // For the new version, we have to set the delegate class NSString *searchWord = @"Elephant"; [wikiHelper fetchArticle:searchWord]; * api 的语言可以在变量wikiHelper.apiU

网友评论