for(UIView *subview in [view subviews]) {
[subview removeFromSuperview];
}

for(UIView *subview in [view subviews]) {
if([subview isKindOfClass:[UIButton class]]) {
[subview removeFromSuperview];
} else {
// Do nothing - not a UIButton or subclass instance
}
}

相关文章:

  • 2022-01-01
  • 2021-11-23
  • 2021-11-02
  • 2021-10-12
  • 2021-04-01
  • 2022-01-20
  • 2021-12-12
  • 2022-01-10
猜你喜欢
  • 2022-12-23
  • 2021-09-15
  • 2021-12-21
  • 2021-04-16
  • 2021-06-24
  • 2021-09-01
  • 2022-12-23
相关资源
相似解决方案