Skip to content

Commit 6551236

Browse files
committed
移动端滚动banner翻页时间调整为5秒
IOS客户端-我的任务创建多了并超出屏幕的宽度会有bug
1 parent 05c16ac commit 6551236

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Coding_iOS/Vendor/XTSegmentControl/XTSegmentControl.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ - (void)setCurrentIndex:(NSInteger)currentIndex
473473
[curItem setSelected:YES];
474474
_currentIndex = currentIndex;
475475
}
476+
[self setScrollOffset:currentIndex];
476477
}
477478

478479
- (void)endMoveIndex:(NSInteger)index

Coding_iOS/Views/CodingBannersView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ - (void)setCurBannerList:(NSArray *)curBannerList{
8888
if (!_mySlideView) {
8989
_mySlideView = ({
9090
__weak typeof(self) weakSelf = self;
91-
AutoSlideScrollView *slideView = [[AutoSlideScrollView alloc] initWithFrame:CGRectMake(kPaddingLeftWidth, _padding_top, _image_width, _image_width * _ratio) animationDuration:10.0];
91+
AutoSlideScrollView *slideView = [[AutoSlideScrollView alloc] initWithFrame:CGRectMake(kPaddingLeftWidth, _padding_top, _image_width, _image_width * _ratio) animationDuration:5.0];
9292
// slideView.layer.cornerRadius = 2.0;
9393
slideView.layer.masksToBounds = YES;
9494
slideView.scrollView.scrollsToTop = NO;

0 commit comments

Comments
 (0)