楼主:
slacash (cash)
2016-01-19 21:25:01刚学习Swift不好意思请教一下各位
若是用CocoaPods ,想使用objective-c 的第三方套件
譬如用AFNetworking
我有在我的Podfile 中
加入 'AFNetworking' 并且执行完pod install
之后用 xcworkspace 开起project
然后在我的controller中 import AFNetworking
可是仍无法使用
请问我的流程有少了什么步骤吗
麻烦各位了
楼主:
slacash (cash)
2016-01-19 22:10:00我加了let manager = AFHTTPRequestOperationManager()错误讯息是 use of unresolved identifer 'AFHTTPRequs..是没import AFNetworking到我的project的关系吗
作者:
songooo (songooo)
2016-01-19 22:19:00试试改用2.6.3版的AFNetworking?
作者:
neotek 2016-01-19 22:24:00楼主:
slacash (cash)
2016-01-19 22:50:00改用2.6.3是在Podfile改成pod 'AFNetworking', '2.6.3'吗再请问一下怎么看目前套件的版本neotek大 所以用swift开发的话只能用swift的套件吗
楼主:
slacash (cash)
2016-01-19 23:07:00platform :ios, '8.0'use_frameworks!target 'TestLibrary' dopod 'AFNetworking'end只有这样而已
作者:
kokuyoku (天龙狂想曲)
2016-01-20 01:06:00有用use_frameworks!就不用桥接文件直接用NSURLSession应该就不用AFNetworking
作者:
uranusjr (â†é€™äººæ˜¯è¶…級笨蛋)
2016-01-20 02:42:00初学 Swift 就用 Alamofire 就好了啦, 别搞那么多