Top "Uilabel" questions

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

iOS multiline label in Interface builder

How can I make a multiline UILabel in interface builder for iOS? I tried the UITextView but it didn't quite …

ios objective-c swift uilabel line-breaks
Handling Touch Event in UILabel and hooking it up to an IBAction

Ok, so I have a UILabel created in interface builder that displays some some default text of "tap to begin". …

ios iphone uilabel interface-builder touch-event
UILabel sizeToFit doesn't work with autolayout ios6

How am I supposed to configure programmatically (and in which method) a UILabel whose height depends on its text? I've …

ios ios6 uilabel autolayout
How to Increase Line spacing in UILabel in Swift

I have a label which has few lines of text and I want to increase the spacing between the lines. …

ios swift uilabel line-spacing
UILabel auto resize on basis of text to be shown

I'm working on an application, in which I'm required to autoresize the text area on basis of text to be …

ios objective-c uilabel uitextview
make UILabel's text bold

I want to make UILabel's text bold infoLabel=[[UILabel alloc]initWithFrame:CGRectMake(90,150, 200, 30)]; [infoLabel setText:@"Drag 14 more Flavors"]; [infoLabel setBackgroundColor:[UIColor …

ios objective-c uilabel uifont textcolor
Swift. UILabel text alignment

I create my UILabel in swift: let label = UILabel(frame: CGRect( x: 50, y: 50, width: 100, height: 50)) setting properties seems to be …

enums uilabel swift
How to center a UILabel on UIView

How can I center the UILabel on the UIView? I am using the following code float width = weatherView.bounds.size.…

ios uiview uilabel
Line Breaks and Number of Lines in Swift Label (Programmatically)

By selecting a Label in a StoryBoard, I can select Line Break to be Word Wrap and change number of …

ios iphone swift uilabel
UIlabel layer.cornerRadius not working in iOS 7.1

I'm currently looking at a UILabel with the property addMessageLabel.layer.cornerRadius = 5.0f; On a device with iOS 7.0 installed, it …

ios uiview ios7 uilabel cornerradius