// // DLTabedSlideView.h // DLSlideController // // Created by Dongle Su on 14-12-8. // Copyright (c) 2014年 dongle. All rights reserved. // #import #import "DLSlideTabbarProtocol.h" @interface DLTabedbarItem : NSObject @property (nonatomic, strong) NSString *title; @property(nonatomic, strong) UIImage *image; @property(nonatomic, strong) UIImage *selectedImage; + (DLTabedbarItem *)itemWithTitle:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage; @end @class DLTabedSlideView; @protocol DLTabedSlideViewDelegate - (NSInteger)numberOfTabsInDLTabedSlideView:(DLTabedSlideView *)sender; - (UIViewController *)DLTabedSlideView:(DLTabedSlideView *)sender controllerAt:(NSInteger)index; @optional - (void)DLTabedSlideView:(DLTabedSlideView *)sender didSelectedAt:(NSInteger)index; @end @interface DLTabedSlideView : UIView //@property(nonatomic, strong) NSArray *viewControllers; @property(nonatomic, weak) UIViewController *baseViewController; @property(nonatomic, assign) NSInteger selectedIndex; //set tabbar properties. @property (nonatomic, strong) UIColor *tabItemNormalColor; @property (nonatomic, strong) UIColor *tabItemSelectedColor; @property(nonatomic, strong) UIImage *tabbarBackgroundImage; @property(nonatomic, strong) UIColor *tabbarTrackColor; @property(nonatomic, strong) NSArray *tabbarItems; @property(nonatomic, assign) float tabbarHeight; @property(nonatomic, assign) float tabbarBottomSpacing; // cache properties @property(nonatomic, assign) NSInteger cacheCount; - (void)buildTabbar; //@property(nonatomic, strong) IBOutlet id tabarView; @property(nonatomic, weak)IBOutlet iddelegate; @end