0
我有一个应用程序,我正在使用YouTube API和Alamofire。使用YouTube API,我会为视频获得一系列标记的回复。就像这样:使用YouTube API标记创建字符串数组
tags = (
tag1,
"tag2",
"tag3",
"tag4",
"tag5"
);
通常情况下,你得到像
title = "NEW Google Home Products!!";
的响应,然后你可以将字符串设定为
var videoTitle:String = ""
,然后从Alamofire ...
响应videoTitle = (items as AnyObject).value(forKeyPath: "statistics.commentCount") as! String
但是,beca如上所示,使用标签返回一串字符串,但此方法不起作用。我将如何创建一个可以设置为标签数组的字符串数组的变量?