func barButtonSelected(button:UIBarButtonItem){
for vi in topNav!.items {
vi.tintColor = UIColor.redColor()
}
button.tintColor = UIColor(hex: "FF0000")
}
the func is UIBarButtonItem'action,I can change the tintcolor of the button which i taped, but can't change the others,the xcode shows cannot assign tintColor to "vi" error,by the way it's a swift code