Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8382007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:49:46+00:00 2026-06-09T16:49:46+00:00

I am very new to iOS development and have inherited some code. I have

  • 0

I am very new to iOS development and have inherited some code. I have come across this:

htmlString = [NSString stringWithFormat:@"<html><head></head><style type=\"text/css\">body h1{font-family:Helvetica Neue;font-weight:bold;font-size: 25px;background-image: -webkit-gradient(linear,left top, left bottom,from(white),to(CCFF00));-webkit-background-clip:text;-webkit-text-fill-color: transparent;}h1:after{ text-shadow:5px 2px 2px #000; content:\"%@\"; color:#000; position:absolute; left:-2px;z-index:-1 }</style><body><h1 style=\"\">%@</h1></body></html>",[loginValueClass sharedloginValueClass].userName,[loginValueClass sharedloginValueClass].userName];
web1.opaque = NO;
web1.backgroundColor=[UIColor clearColor];
web1.userInteractionEnabled = FALSE;
[web1 loadHTMLString:htmlString baseURL:nil];

Where web1 is of type UIWebView.

It produces some styled text with a gradient. However, it appears blurry on retina screens. It also has a noticeable delay when loading the screen.

My question is, is this really the best way to create such styled text, and if so, how do I solve the blurring issue on retina screens?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:49:47+00:00Added an answer on June 9, 2026 at 4:49 pm

    It’s blurry on Retina displays because -webkit-background-clip:text doesn’t seem to take the display’s resolution into consideration, so the clipping is done at a lower resolution.

    UIWebViews only make sense if you have texts with several different styles, e.g. a few words in red, a few words on a larger font size etc.

    For simple texts, a UILabel is MUCH more efficient, and can be styled (shadows etc.) reasonably well. You can find examples here:

    • StyleLabel: a UILabel with style (StyleLabel.h, StyleLabel.m)
    • FXLabel
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm very new with iOS Development and I have just created one of my
i am very new to ios development, rather i have just started work on
I apologise if this a silly question but I'm very new to iOS development.
I am very new to iOS development, I have an app all set and
I am very new to iOS development, very excited though. I have built an
I am very new at iOS and objective-c development, so I am struggling with
Very new to python and can't understand why this isn't working. I have a
I am VERY new with iOS development. So, please make your response as exact
First, I am super-new to Objective-C/iOS development and, in fact, this question is for
I'm very new to IOS programming and i have doubt with NSThread. My problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.