Is there a way to make the background of a UIView a gradient without subclassing it? I\'d rather not use an image file to accomplish this either. It just seems obtuse to hav
I agree with rpetrich, it would be cleaner to just do the UIView subclass. For an example of how to do this, see my response in this question. If you wanted, you could create a generic gradient UIView subclass and simply place that behind the views you want to have gradient backgrounds.