自定义UIBarButtonItem的时候发现 有时候UIBarButtonItem尺寸会发生变化 通过以下方式可以很好的解决问题

[button.widthAnchor constraintEqualToConstant:(80)].active = YES;
[button.heightAnchor constraintEqualToConstant:(26)].active = YES;
[[UIBarButtonItem alloc] initWithCustomView:button];

相关文章:

  • 2021-08-31
  • 2022-02-23
  • 2022-12-23
  • 2021-06-28
  • 2021-12-26
  • 2021-09-13
  • 2022-12-23
猜你喜欢
  • 2022-01-06
  • 2021-08-06
  • 2021-11-17
  • 2022-01-02
  • 2022-01-02
  • 2021-08-03
相关资源
相似解决方案