Skip to content

fix headerView#291

Open
slodier wants to merge 1 commit intogsdios:masterfrom
slodier:headerView
Open

fix headerView#291
slodier wants to merge 1 commit intogsdios:masterfrom
slodier:headerView

Conversation

@slodier
Copy link
Copy Markdown

@slodier slodier commented Mar 29, 2017

作为 TableView 的 headerView, 滑动列表的时候,定时器会停止,且不会重新启动,需要手动启动
demo:

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
    // 判断定时器是否为空
    if (!self.cycleScrollView.timer) {
        // 启动定时器
        [self.cycleScrollView setupTimer];
    }
    return self.cycleScrollView;
}

@renbin0916
Copy link
Copy Markdown

@slodier 多谢,终于搞定了,弄了好久。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants