You are logically right and your code will work just fine.
You get an error message
" _UINavigationBarBackground ' (0x107e2f2a0) > 'UIButton' (0x107e357e0). (Lldb)
, for loop , i.e. = 0,
buttonsToClear = view.viewWithTag(i) as! UIButton
buttonsToClear = view.viewWithTag(0) as! UIButton
, tag 0.
UINavigationBarBackground 0.
:
1. , , viewWithTag:, .
2. 0.
3. UILabel UIView XIB .
, UINavigationBarBackground UIButton. UINavigationBarBackground UIButton.
:
, 0.
, 1000.
1000, 1001, 1002 .
for, .
var buttonsToClear : UIButton
for var i = 1000; i < 1009; i++ {
buttonsToClear = view.viewWithTag(i) as! UIButton
buttonsToClear.setImage(nil, forState: .Normal)
}