func barButtonSelected(button:UIBarButtonItem){
for vi in topNav!.items {
vi.tintColor = UIColor.redColor()
}
button.tintColor = UIColor(hex: "FF0000")
}
func是UIBarButtonItem'action,我可以更改我录制的按钮的tintcolor,但不能更改其他按钮,xcode显示无法将tintColor分配给“vi”错误,顺便说一下它是一个快速代码