热门搜索 :
考研考公
您的当前位置:首页正文

Swift 中使用oc 中的第三方框架

来源:东饰资讯网
屏幕快照 2016-06-23 17.30.21.png

1.首先新建一个 Header 文件
2.通过cocoaPods 添加想要使用的第三方例如
Podfile中添加如下代码


屏幕快照 2016-06-23 17.33.16.png

3.在创建的Header 中引用添加的第三方

#ifndef My_Bridging_Header_h
#define My_Bridging_Header_h

#import "UIImageView+WebCache.h"
#import "AFNetworking.h"
#import "SVProgressHUD.h"
#import "SDCycleScrollView.h"

#endif /* My_Bridging_Header_h */
  1. 最后在TARGETS 中的Build Settings 中搜索 bird 找到


    82E6082F-14BB-452D-AA48-D5E1A40A3C2D.png

双击将我们创建的Header 拖进去 就OK了

Top