ysnky
ysnky

Reputation: 281

set tint for uiview background color

how can i set tint color as a uiview background color? thanks.

Upvotes: 1

Views: 2409

Answers (1)

Alex Reynolds
Alex Reynolds

Reputation: 96966

Set the UIView view's backgroundColor property:

UIView *myView;
UIColor *myTint;
...
/* initialize myView and myTint */
...
myView.backgroundColor = myTint;
...
/* release myTint, if necessary */

Upvotes: 1

Related Questions