나는 UIBarButtonItem
의 tintColor
를 설정하고 작동하지 않습니다. 이것은 색상이 밝은 색상 인 한 작동합니다. 즉, darkGrayColor
으로 설정하려고하면 아무 일도 일어나지 않습니다. 사실 흰색으로 색조가 변경됩니다! 하지만 색상을 redColor
으로 변경하면 작동합니다 ... 여기서 어떻게됩니까?UIBarButtonItem setTintColor은 어두운 색상
UIBarButtonItem *penButton = [_toolBar.items objectAtIndex:3];
UIBarButtonItem *crossButton = [_toolBar.items objectAtIndex:4];
//This actually sets the tint to white not gray, which is odd?
[penButton setTintColor:[UIColor darkGrayColor]];
[crossButton setTintColor:[UIColor redColor]]; //Red is fine, as is green etc
맞춤 색상 (RGB 값)을 입력하고 결과를 확인해 보셨습니까? – Till
좋은 생각이지만 그 중 하나가 작동하지 않는 것, 결과로 질문을 업데이 트하겠습니다 – Chris
색조 색상을 설정하지 못했지만 새로운 알파를 설정! – Chris