1
SwiftyJSONのすべてのswitch文をif-else条件に変換すると、switch文がメモリリークを起こしているためです。Swift内の他の場合にスイッチを変換する
私はほとんどすべてのスイッチ・ステートメントを変換しましたが、私はこれで立ち往生腸:
fileprivate subscript(sub sub: JSONSubscriptType) -> JSON {
...
switch sub.jsonKey {
case .index(let index): return self[index: index]
case .key(let key): return self[key: key]
}
...
}
public enum JSONKey {
case index(Int)
case key(String)
}
誰かが私を助けてくださいことはできますか?事前に
タンク、 マイケル