Skip to content

socoolby/DigitNumber

Repository files navigation

DigitNumber

Digit number for iOS

Why not use some font?

Because I found the font of Digit number 1's font width is less then other's digit number.

Installation

DigitNumber supports multiple methods for installing the library in a project.

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like DigitNumber in your projects. See the "Getting Started" guide for more information. You can install it with the following command:

$ gem install cocoapods

Podfile

To integrate DigitNumber into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

target 'TargetName' do
pod 'DigitNumber', '~> 0.0.4'
end

Then, run the following command:

$ pod install

Installation with copy file

copy files on the below to your project

DigitNumber.h 
DigitNumber.m

How to use

[self.timeView setFontSize:40];
[self.timeView setFontPadding:8];
[self.timeView setFontColor:[UIColor blackColor]];
[self.timeView setTextAlias:DN_ALIGH_CENTER];
[self.timeView setContent:@"23:28:08"];

About

Digit number for iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published