I have a class :
@interface UIExView : UIView { ....... }
In another class, UIExView is defined as following: IBOutlet UIExView* exView;
exView is connected to an View in XIB.
I set background image of exView as:
UIColor* bgrColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed: backgroundImageName]]; exView.backgroundColor = bgrColor;
Now I want to change another image as background of exView. I do the same things:
UIColor* newBgrColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed: anotherBackgroundImage]]; exView.backgroundColor = newBgrColor;
It work well on simulator(background image is changed to the new one) but it does not work on real device. Pls, share your experience, thanks.