jeudi 26 février 2015

align two labels text vertically

I have 2 labels with text as


First Value :1,000 Second Value :100


how can i vertically align two labels text to achieve like below(i.e to make the labels text align vertically at colon).


First Value :1,000 Second Value :100


I know that it is possible with 4 different labels.


First Label1 : amount label1 Second Label2 : amount Label2 But,what i need is to achieve them in 2 labels only [NSString stringWithFormat:@"First Label1: %@",amount label1]; [NSString stringWithFormat:@"First Label2: %@",amount label2];


and align vertically at colon




Aucun commentaire:

Enregistrer un commentaire