Top "Uilabel" questions

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

swift: programmatically create UILabel fixed width that resizes vertically according to text length

I've seen answers to vertical resizing that involve autolayout, but the UILabels I'm creating are only needed at runtime. (I …

ios swift uilabel autoresize
How to set multi line Large title in navigation bar? ( New feature of iOS 11)

I am in process of adding large title in navigation bar in one of the application. The issue is title …

ios swift uilabel uinavigationbar large-title
Enable copy and paste on UITextField without making it editable

I want the text in a UITextField (or ideally, a UILabel) to be non-editable, but at the same time give …

ios cocoa-touch uitextfield uilabel copy-paste
Is there a touch method for UILabel?

I'd like to do an action if someone touches a predeclared UILabel, something like: if (label is touched) { my actions; } …

objective-c ios cocoa-touch uilabel touch-event
Swift: Programmatically make UILabel bold without changing its size?

I have a UILabel created programmatically. I would like to make the text of the label bold without specifying font …

swift uilabel bold
Customize navigation bar by adding two labels instead of title in Swift

I am trying to add two labels in the place where the title is shown in navigation bar, but I …

ios swift uinavigationcontroller uilabel uinavigationitem
Using custom fonts with Xcode 6 / iOS 8 Interface Builder Launch Screen

I'm using Xcode 6’s new interface builder-based launch images, and am running into an issue. I created a new interface …

ios xcode fonts interface-builder uilabel
NSAttributedString ignores Autoshrink and numberOfLines for UILabel (iOS 6)

I have UILabel with number of lines = 2 system font size = 15 minimum font size = 8 Line break mode - Truncate tail When …

ios iphone objective-c uilabel nsattributedstring
UISegmentedControl delegate/Touch Events

I have a UISegmentedControl that has six segments, I want them to call a method when the value changes, but …

iphone uibutton uilabel uisegmentedcontrol
Letter spacing in iOS

I have the following code: [[cancelButton titleLabel] setFont:[UIFont fontWithName:@"ProximaNova-Regular" size:15]]; How would I set the letter-spacing as well?

ios objective-c uilabel uifont