Posts

Post marked as solved
12 Replies
Thanks again ๐Ÿ™‚
Post marked as solved
12 Replies
Thanks, actually there is only one condition, I use conditions is just for identicalbuy the way, how I close this thread? I found no button doing this ๐Ÿ˜•
Post marked as solved
12 Replies
Finally, I can get the data as followif let conditions = current["weather_descriptions"] as? Array<String> { for condition in conditions { self. condition = condition }}condition is an label string.Thank you all , again !
Post marked as solved
12 Replies
Thanks Eskimo, will use this method next time ๐Ÿ™‚
Post marked as solved
12 Replies
Claude31, I see with thanks๐Ÿ™‚
Post marked as solved
12 Replies
Thanks Claude,Yes, this is part of array that from API json weatherStack, as I try to make a weatherApp.I can get data from"current" : {"temperature" : 22 ,"wind_dir" : "SSW" ,"weather_descriptons" : ["Partly cloudy"] ,}for temperature and wind_dir like thisif let current = json["current"] as? [ String : AnyObject] {if let temp = current["temperature"] as? Int { self.temperture = temp}if let windD = current["wind_dir"] as? Int { self.windDir = windD}}but not for "weather_descriptions"if let Condition = current["weather_descriptions"] as? String {self.condition = Condition }๐Ÿค”