DLSlideView icon indicating copy to clipboard operation
DLSlideView copied to clipboard

基本上十个便签就会出现问题了

Open GarthGit opened this issue 6 years ago • 4 comments

第十个标签滑动不出来

GarthGit avatar Dec 20 '18 02:12 GarthGit

item的间隔独立出来了吗

GarthGit avatar Dec 20 '18 02:12 GarthGit

`#pragma mark ============== item width

  • (void)layoutTabbar{

    float width = self.bounds.size.width/self.tabbarItems.count; float height = self.bounds.size.height; float x = 0.0f; for (NSInteger i=0; i<self.tabbarItems.count; i++) { x = i*width; UILabel *label = (UILabel *)[scrollView_ viewWithTag:kLabelTagBase+i]; UIImageView *imageView = (UIImageView *)[scrollView_ viewWithTag:kImageTagBase+i]; UIImageView *selectedIamgeView = (UIImageView *)[scrollView_ viewWithTag:kSelectedImageTagBase+i]; label.frame = CGRectMake(x + (width-label.bounds.size.width-CGRectGetWidth(imageView.bounds))/2.0f, (height-label.bounds.size.height)/2.0f, CGRectGetWidth(label.bounds), CGRectGetHeight(label.bounds)); imageView.frame = CGRectMake(label.frame.origin.x + label.bounds.size.width+kImageSpacingX, (height-imageView.bounds.size.height)/2.0, CGRectGetWidth(imageView.bounds), CGRectGetHeight(imageView.bounds)); selectedIamgeView.frame = imageView.frame; }

    float trackX = width*self.selectedIndex; trackView_.frame = CGRectMake(trackX, trackView_.frame.origin.y, width, kTrackViewHeight); } ` 应该是这段code布局item.width?

GarthGit avatar Dec 20 '18 02:12 GarthGit

更差了

GarthGit avatar Dec 20 '18 02:12 GarthGit

item width有配置项的,用1.0版吧

agdsdl avatar Dec 26 '18 14:12 agdsdl