How to add shadow to text in a UITextView?

Discussion in 'iOS Programming' started by Compile 'em all, Jan 29, 2010.

  1. Compile 'em all macrumors 601

    Compile 'em all

    Apr 6, 2005
    Anyone knows if it is possible to add shadow to text in a UITextView like that of a label? Thanks!
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    Doesn't seem to be. You should probably look over all the fonts available on the phone to see if any of them give you a shadow appearance.

    If you only need display, not input, you could probably put a label into a scrollview.

    Looking over the 3.2 docs it seems that they've added a lot of APIs related to text, so possibly something there would work better.
  3. hoosierfan24 macrumors member

    Jul 31, 2009
    i dont think there is an option built into the ipod sdk but what you could do is make an image file with the type of txt you are looking for and just replace your label with you picture that has the shadow txt in it
  4. dutchchilly macrumors member

    Jun 29, 2009
    Perhaps you can add an underlaying UITextView with the same text, some pixels offset (for instance 1px right, 1px down), black and transparancy set to 50%?

    This way you can keep your text dynamic if that's preferabel.

Share This Page