I was thinking maybe something like this might work:
for (UIView* b in self.view.subviews) { [b removeFromSuperview]; }
For Swift 4+.You can make a extension to UIView. Call it whenever necessary.
UIView
extension UIView { func removeAllSubviews() { subviews.forEach { $0.removeFromSuperview() } } }