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

样式设置失效及坐标微调问题 #59

Open
4 tasks done
jdleung opened this issue Oct 16, 2020 · 0 comments
Open
4 tasks done

样式设置失效及坐标微调问题 #59

jdleung opened this issue Oct 16, 2020 · 0 comments

Comments

@jdleung
Copy link

jdleung commented Oct 16, 2020

✔️ Issue Checklist

✍🏻 Issue Description

因为弹出的菜单挡住了按钮,尝试改变y坐标作一个偏移
menu.contentFrame.origin.y -= 50

可以实现,但放在这行代码之后的样式设置就失效了,例如

menu.appearance.popMenuCornerRadius = 2
menu.appearance.popMenuColor.backgroundColor = .solid(fill: .purple)

通过测试menu.contentFrame.origin.y -= 50必须放在样式设置之后。

请问还有更好的办法来微调菜单的位置吗?谢谢

💻 Environment

  • iOS Version: [13.3]
  • Xcode Version: [11.3.1]
  • Device(s): [iPhone 11]
  • Simulator?: ☑️
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