How would I loop through all UIButtons in my view in Swift? I would want to set all the titles to \"\", but my for-loop in Swift is giving an error.
UIButtons
\"\"
Here's a short way in Swift if you know the subview only has buttons:
myView.subviews.map { ($0 as? UIButton)!.enabled = false }