Monday 21 December 2015

Change UIIMage background color in iOS


5Change UIIMage background color in iOS.jpg
Here is a function which returns an image with different background of you choice.
  1. - (UIImage* )setBackgroundImageByColor:(UIColor *)backgroundColor withFrame:(CGRect )rect{

  2. // tcv - temporary colored view
  3. UIView *tcv = [[UIView alloc] initWithFrame:rect];
  4. [tcv setBackgroundColor:backgroundColor];


  5. // 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