开发者

I Need to display the content on label with multi line

开发者 https://www.devze.com 2023-02-09 05:28 出处:网络
I am displaying data on UIlabel for iphonewith multi-line.the problem is that i need to dis开发者_如何转开发play specific content and the display dot... on label if content is not display in two line

I am displaying data on UIlabel for iphone with multi-line. the problem is that i need to dis开发者_如何转开发play specific content and the display dot... on label if content is not display in two line after content


For get a multi-line label use UITextView or set your label to multi-line:

label.lineBreakMode = UILineBreakModeWordWrap;
label.numberOfLines = 5; //Or whatever you want
0

精彩评论

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