Any way you can tint a UIView? Not the background color, but the entire UIView with all its subviews.
e.g - A UIView with an animation of a star rotating , i.e The
To tint a UIView
, add another subview on top of it with the same frame
and an alpha transparency set.
For example let's say your container type view is called containerView
, you'd do as follows:
CGRect overlayFrame = containerView.frame;
UIView *overlayView = [UIView alloc] initWithFrame:overlayFrame];
overlayView.alpha = 0.5f;
overlayView.color = [UIColor blackColor];
[containerView addSubview:overlayView];
This gives you a semi transparent (0.5f) black tint that will give a tint like appearance to all the subviews underneath.