How do I prevent uilabel from shortening?

i display numbers on uilabel and use timer to update text like countdown ... i use this font to show time like LCD clock

[CountdownLabel setFont: [UIFont fontWithName: @ "DBLCDTempBlack" size: 48.0]];

I am facing two problems with this.

  1. with this font of dots (:) there are fewer numbers between numbers.
  2. the digits decrease as they count down, suppose if there is a 1 and after a 0, then the digit becomes large. And the label acts as if it enlarges the font of that particular number.

I want to keep track of things on Uilabel.

  1. glow effect around the numbers.
  2. prevent squeezing (note I disabled the Adjust To Fit property of the label)

also i want to know if there is any other font besides this one to show the text like a digital clock. and finally, a request from all of you. Is there a way to start a countdown timer using the images of numbers.

here is the image what i want

Label

+2


source to share





All Articles