Clear content of UIScrollView

前端 未结 6 420
盖世英雄少女心
盖世英雄少女心 2021-01-04 04:24

I have an iPhone application that uses a timer and at every time interval it creates some UILabel controls and adds them into a UIScrollView.

6条回答
  •  臣服心动
    2021-01-04 05:11

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

提交回复
热议问题