Top "Uilabel" questions

The UILabel class implements a read-only text view in iOS.

Figure out size of UILabel based on String in Swift

I am trying to calculate the height of a UILabel based on different String lengths. func calculateContentHeight() -> CGFloat{ …

ios iphone string swift3 uilabel
How do I create a round cornered UILabel on the iPhone?

Is there a built in way to create round-cornered UILabels? If the answer is no, how would one go about …

ios objective-c cocoa-touch uilabel rounded-corners
How to calculate UILabel width based on text length?

I want to display an image next to a UILabel, however UILabel has variable text length, so I don't know …

ios objective-c swift uikit uilabel
iOS: Multi-line UILabel in Auto Layout

I'm having trouble trying to achieve some very basic layout behavior with Auto Layout. My view controller looks like this …

ios iphone cocoa-touch autolayout uilabel
Underline text in UIlabel

How can I underline a text that could be multiple lines of string? I find some people suggest UIWebView, but …

ios text uikit uilabel underline
How to draw border around a UILabel?

Is there a way for UILabel to draw a border around itself? This is useful for me to debug the …

ios iphone cocoa-touch uikit uilabel
UILabel font size?

I can't seem to modify the font size of a UILabel with the following code: itemTitle.font = [UIFont systemFontOfSize:25]; As …

objective-c iphone fonts uilabel font-size
How to make a UILabel clickable?

I would like to make a UILabel clickable. I have tried this, but it doesn't work: class DetailViewController: UIViewController { @IBOutlet …

ios swift uilabel uitapgesturerecognizer
How to underline a UILabel in swift?

How to underline a UILabel in Swift? I searched the Objective-C ones but couldn't quite get them to work in …

ios swift overriding uilabel nsattributedstring
How to calculate UILabel height dynamically?

I want to calculate number of lines and height of UILabel dynamically from given text for same.

iphone ios label uilabel