开发者

how to display text in new line

i wan to display the string line by line...what changes i shd make in the below code..

i want the result to display like this

for example-

latest loan:0000
conytry:abc
amount:000

the below code is not working for new line...so what change i shd make in the below code

// code

开发者_如何学JAVAlabel.text = [NSString stringWithFormat:@"Latest loan: %@ \n country:  %@ \n amount $%.2f",
                  name,country,outstandingAmount];


Don't touch that code :-@. Just set,

label.numberOfLines = 0;


textLabel.lineBreakMode = UILineBreakModeWordWrap;
textLabel.numberOfLines = 0;

Check this post

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜