0

i need to add a background image to a phone number that is contained inside an HTML code that i load into a UIWebView

NSString *stringToReplace = [NSString stringWithFormat:@"<a style=\"color:white; background-color:#707070; text-decoration:none\" href=\"compose://%@\">%@</a>",substring,substring];
    newString = [newString stringByReplacingOccurrencesOfString:substring withString:stringToReplace];

I've managed to change the background color, but instead i need to put an image as background. The main goal is to make a lightGray Background with rounded corners behind the phone number.

I've found what was the problem solution

Thanks,

Community
  • 1
  • 1
George
  • 115
  • 1
  • 10

1 Answers1

0

i dont really undderstand your code, maybe you should use css background images:

background: #afdafd    url('path...');
          /*def.color. back.img.*/  

<a style=\"color:white; background:#707070 url('/images/rounded-corner.png'); text-decoration:none\" href=\"compose://%@\">%@</a>
Gergely Fehérvári
  • 7,811
  • 6
  • 47
  • 74