i have an issue,
htmltext = [NSString stringWithFormat:@"<style>width:100%"
and the percentage (%) have a warning : invalid conversion specifier '"'
how we write percentage in obj c which is i write on webview.
thanks!
i have an issue,
htmltext = [NSString stringWithFormat:@"<style>width:100%"
and the percentage (%) have a warning : invalid conversion specifier '"'
how we write percentage in obj c which is i write on webview.
thanks!
You should use %%
which escapes the %
.
However, if you don't have any parameters (as in your example) then you should just use:
htmltext = @"<style>width:100%";
Try this -
htmltext = [NSString stringWithFormat:@"<style>width:100%%"];
Use %% which escapes the %.