已知button的frame,如果要计算button相对于view的frame,则可以使用以下方法

CGRect rc = [btn.superview convertRect:btn.frame toView:self.view];

相关文章:

  • 2021-10-07
  • 2021-08-19
  • 2022-02-09
  • 2021-11-14
  • 2021-05-21
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-12
  • 2021-12-04
  • 2021-07-17
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2022-02-16
相关资源
相似解决方案