简体   繁体   中英

I cannot make a sample request with Alamofire

I just installed Alamofire 3.0 with swift 2.2 and xcode 7.3.1

When I try to make the request as in the example at:

https://github.com/Alamofire/Alamofire

xcode says this:

预期声明

I can not understand why

You have your request outside a function. Put it inside a function or in viewDidLoad and it will work for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM