- Download and unarchive Alamofire
- Copy the root folder of Alamofire to any subfolder of your project. Libs, for example.
- Drag and drop Alamofire.xcodeproj to your Xcode project
- Open project settings of your project, Build Phases pane, expand Target Dependencies section, and add Alamofire as new dependency
- Open General pane, expand Embedded Binaries section, and add Alamofire.framework
- import Alamofire // in your source file
- Alamofire.request(.GET, "http://httpbin.org/get") // use Alamofire
ios开发引入第三方库
最新推荐文章于 2022-11-29 23:32:51 发布