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

showAtCenterPoint not useful #31

Open
tukzi opened this issue Jan 22, 2021 · 0 comments
Open

showAtCenterPoint not useful #31

tukzi opened this issue Jan 22, 2021 · 0 comments
Assignees

Comments

@tukzi
Copy link

tukzi commented Jan 22, 2021

UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 200, 500, 500)];
view.backgroundColor = [UIColor redColor];
[self.view addSubview:view];

UIView *v = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 20, 30)];
v.backgroundColor = [UIColor blackColor];

FFPopup *pop =  [FFPopup popupWithContentView:v];
[pop showAtCenterPoint:CGPointMake(100, 20) inView:view];

When used this way, a black view will not appear correctly on red

@JonyFang JonyFang self-assigned this Jan 29, 2021
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

2 participants