https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/ImplementingView/ImplementingView.html

实现UIView的

- (CGSize)intrinsicContentSize
{
}

方法,然后使用

[self invalidateIntrinsicContentSize];

通知窗体大小发生变化

相关文章:

  • 2022-01-28
  • 2021-12-12
  • 2022-12-23
  • 2021-08-22
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2021-05-31
  • 2022-02-24
  • 2022-01-04
  • 2022-01-12
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案