HTTP Request in swift not working

后端 未结 6 960
攒了一身酷
攒了一身酷 2021-02-03 10:19

I\'m trying to learn about working with APIs in Swift. As a good first test, I figured I\'d hit the itunes API and just return some search results. I\'m in playground using the

6条回答
  •  鱼传尺愫
    2021-02-03 10:58

    Swift 3 code:

    
    
    import PlaygroundSupport
    PlaygroundPage.current.needsIndefiniteExecution = true
    

提交回复
热议问题