Here is a function which returns an image with different background of you choice.
- - (UIImage* )setBackgroundImageByColor:(UIColor *)backgroundColor withFrame:(CGRect )rect{
- // tcv - temporary colored view
- UIView *tcv = [[UIView alloc] initWithFrame:rect];
- [tcv setBackgroundColor:backgroundColor];
- // set up a graphics context of button's size
Read full blog at our highly specific C, Java, PHP, Javascript, android, iOS developer forum about the topic described above "Change UIIMage background color in iOS". You can also learn much more about different programming technologies and can enhance your tech skills.
No comments:
Post a Comment