how can I remove sub view code example Example: how to remove subview siwft 5 yourView.removeFromSuperview()