// // DLSlideView.h // DLSlideController // // Created by Dongle Su on 14-12-7. // Copyright (c) 2014年 dongle. All rights reserved. // #import @class DLSlideView; @protocol DLSlideViewDataSource - (NSInteger)numberOfControllersInDLSlideView:(DLSlideView *)sender; - (UIViewController *)DLSlideView:(DLSlideView *)sender controllerAt:(NSInteger)index; @end @protocol DLSlideViewDelegate @optional - (void)DLSlideView:(DLSlideView *)slide switchingFrom:(NSInteger)oldIndex to:(NSInteger)toIndex percent:(float)percent; - (void)DLSlideView:(DLSlideView *)slide didSwitchTo:(NSInteger)index; - (void)DLSlideView:(DLSlideView *)slide switchCanceled:(NSInteger)oldIndex; @end @interface DLSlideView : UIView //@property(nonatomic, strong) NSArray *viewControllers; @property(nonatomic, assign) NSInteger selectedIndex; @property(nonatomic, weak) UIViewController *baseViewController; @property(nonatomic, weak) iddelegate; @property(nonatomic, weak) iddataSource; - (void)switchTo:(NSInteger)index; @end