Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

viewDidLoad中异步添全屏的tableview时,会遮挡fakeBar #146

Open
JiaoYingBo opened this issue Jul 2, 2021 · 0 comments
Open

viewDidLoad中异步添全屏的tableview时,会遮挡fakeBar #146

JiaoYingBo opened this issue Jul 2, 2021 · 0 comments

Comments

@JiaoYingBo
Copy link

- (void)viewDidLoad {
    [super viewDidLoad];
    [self requestSuccess:^{
        self.tableView.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight);
        [self.view addSubview:self.tableView];
    } failure:nil];
}

代码这样写,如果接口请求比较快,tableview会把正在显示的fakeBar遮挡掉。

这样的奇葩代码不常见,但问题确实存在。

我把showFakeBarFrom和showFakeBarTo中的FakeImageView、FakeBar、FakeShadow设置了FakeView.layer.zPosition=MAXFLOAT就解决了,不知道有没有别的影响。

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

No branches or pull requests

1 participant