Search code examples
cocoa-touchuikitcore-graphicsuilabelquartz-graphics

Embossed text in UILabel


I need to draw an effect like this on a UILabel.

Embossed

How can I do it?


Solution

  • U can try the below code. U can change the color of the text or the shadow based on the color of the background.

    [label setShadowColor:[UIColor darkGrayColor]];
    
    [label setShadowOffset:CGSizeMake(0, -1)];