非常簡單直接的問題。如何從Swift中的JSON數組中刪除項目(使用SwiftyJSON)
我有一個jsonArray,我想通過索引刪除一個項目。我怎麼做?
我嘗試使用從這裏的解決方案: https://github.com/SwiftyJSON/SwiftyJSON/issues/439
像這樣:
jsonArray[row]["Likers"].array!.dictionaryObject?.removeValueForKey(index)
但我得到這個錯誤:
value of type json has no member dictionaryObject
是啊,這一個工作的感謝。 –