text: 
  #import <RFKit/RFRuntime.h>
  
  // TODO: 布局仍旧存在问题
  
  @class RFImageGallery, RFImageGalleryScrollContainer, RFImageGalleryCell;
  
  
  /// 
  @protocol RFImageGalleryDataSource <NSObject>
  
  @required
  - (UIImage *)imageGallery:(RFImageGallery *)gallery imageAtIndex:(NSUInteger)index;
  - (NSUInteger)numberOfImageInGallery:(RFImageGallery *)gallery;
  @end
  
  
  /// 
  @interface RFImageGallery : UIScrollView
  <UIScrollViewDelegate>
  
  @property (weak, nonatomic) IBOutlet id<RFImageGalleryDataSource> dataSource;
  - (void)reloadData;
  
  @property (assign, nonatomic) NSUInteger index;
  
  /// 动画还不支持
  - (void)scrollToIndex:(NSUInteger)toIndex animated:(BOOL)animated;
  
  @property (strong, nonatomic) IBOutlet RFImageGalleryScrollContainer *scrollContainer;
  @end
  
  
  /// 
  @interface RFImageGalleryScrollContainer : UIView
  @property (weak, nonatomic) IBOutlet RFImageGallery *master;
  - (id)initWithMaster:(RFImageGallery *)master;
  
  @property (RF_STRONG, nonatomic) IBOutlet RFImageGalleryCell *lCell;  // Left
  @property (RF_STRONG, nonatomic) IBOutlet RFImageGalleryCell *mCell;  // Middle
  @property (RF_STRONG, nonatomic) IBOutlet RFImageGalleryCell *rCell;  // Right
  @end
  
  
  /// 
  @interface RFImageGalleryCell : UIScrollView
  <UIScrollViewDelegate>
  @property (RF_STRONG, nonatomic) IBOutlet UIImageView *imageView;
  @property (assign, nonatomic) NSUInteger index;
  
  - (void)setImage:(UIImage *)image;
  @end
  