1. 新建个工程

2. 建一个Podfile

3. Podfile里面填

platform:ios,'7.0'


pod 'ReactiveCocoa'

4 命令行pod install

以上都是常规的pod加入框架的方法。

5 在ReactiveCocoaDemo-Prefix.pch 将RAC的头文件加进去

#import
 
  

 
  

 
  
#ifndef __IPHONE_5_0
 
  
#warning "This project uses features only available in iOS SDK 5.0 and later."
 
  
#endif
 
  

 
  
#ifdef __OBJC__
 
  
  
 
  
  
 
  
/
 
  
  
 
  
  
 
  
#endif

运行即可