1

I am trying to make a survey using Apple's ResearchKit but I couldn't find how to change the color of the predefined buttons. They are blue but I want to make them of a different color. How to do this?

Ricardo Sanchez-Saez
  • 9,466
  • 8
  • 53
  • 92
Heger
  • 17
  • 6

2 Answers2

3

Using UIView's appearance proxy to set the tint color should work:

[UIView appearance].tintColor = yourColor;
Ricardo Sanchez-Saez
  • 9,466
  • 8
  • 53
  • 92
1

It's very late now but might save somebody's time, worked for me:

taskviewcontrollerobject.view.tintColor = [UIColor redColor]; // color of your choice