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如上所示,使用標籤返回一串字符串,但此方法不起作用。我將如何創建一個可以設置爲標籤數組的字符串數組的變量?