簡體   English   中英

我無法向 Alamofire 提出樣品請求

[英]I cannot make a sample request with Alamofire

我剛剛用 swift 2.2 和 xcode 7.3.1 安裝了 Alamofire 3.0

當我嘗試像示例中那樣發出請求時:

https://github.com/Alamofire/Alamofire

xcode 是這樣說的:

預期聲明

我不明白為什么

您在函數之外有您的請求。 把它放在一個functionviewDidLoad ,它會為你工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM