swift 如何删除subviews

scrollView.subviews.map {
    (var view) -> () in
    if (view is UIButton) {
        view.removeFromSuperview()
    }
}

 

posted on 2015-06-18 09:42  小浪鼓  阅读(1273)  评论(0编辑  收藏  举报

导航