滑动标签页导航 可自定义 内存缓存优化

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title =GetString(@"shopping_title", @"");
    // Do any additional setup after loading the view from its nib.
    self.slideView.baseViewController = self;
    self.slideView.delegate = self;
    self.slideView.tabItemNormalColor = [UIColor blackColor];
    self.slideView.tabItemSelectedColor = [UIColor colorWithRed:0.833 green:0.052 blue:0.130 alpha:1.000];
    self.slideView.tabbarTrackColor = [UIColor colorWithRed:0.833 green:0.052 blue:0.130 alpha:1.000];
    self.slideView.tabbarBackgroundImage = [UIImage imageNamed:@"slideTabbarBk"];
    self.slideView.tabbarBottomSpacing = 3.0;

    DLTabedbarItem *item1 = [DLTabedbarItem itemWithTitle:GetString(@"shopping_renqi", @"") image:[UIImage imageNamed:@"goodsHot"] selectedImage:[UIImage imageNamed:@"goodsHot_d"]];
    DLTabedbarItem *item2 = [DLTabedbarItem itemWithTitle:GetString(@"shopping_news", @"") image:[UIImage imageNamed:@"goodsNew"] selectedImage:[UIImage imageNamed:@"goodsNew_d"]];
    DLTabedbarItem *item3 = [DLTabedbarItem itemWithTitle:GetString(@"shopping_price", @"") image:[UIImage imageNamed:@"goodsPrice"] selectedImage:[UIImage imageNamed:@"goodsPrice_d"]];
    self.slideView.tabbarItems = @[item1, item2, item3];
    [self.slideView buildTabbar];
    
    self.slideView.selectedIndex = self.selectedTabIndex;
}