Top "Uilabel" questions

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

Center NSTextAttachment image next to single line UILabel

I'd like to append an NSTextAttachment image to my attributed string and have it centered vertically. I've used the following …

ios objective-c swift uilabel nstextattachment
Add "...Read More" to the end of UILabel

I have a UILabel and in some cases the text is longer then the UILabel itself, so I see the …

ios objective-c uilabel nsattributedstring
iOS: UIButton titleLabel -- does it do anything at all?

I want to make a UIButton with type UIButtonTypeCustom (for the shape). I want to assign the title using button.…

iphone ios uibutton uilabel uifont
How do I add a gradient to the text of a UILabel, but not the background?

hey, I want to be able to have a gradient fill on the text in a UILabel I know about …

iphone objective-c core-graphics uilabel gradient
Swift : tap on a part of text of UILabel

I have a problem that "boundingRectForGlyphRange" always returns CGRect.zero "0.0, 0.0, 0.0, 0.0". "boundingRectForGlyphRange" is not working. For example, I am coding for …

ios swift uilabel nsattributedstring nslayoutmanager
Autoshrink on a UILabel with multiple lines

Is it possible to use the autoshrink property in conjunction on multiple lines on a UILabel? for example, the large …

ios ios5 uilabel
Setting UILabel - Font through code - generates error - iPhone

See following code carefully. Because it works perfectly. Try to add in your application. it will work - (void)viewDidLoad { […

iphone uilabel uifont
Adding TapGestureRecognizer to UILabel in Swift

I add a UITapGestureRecognizer:tapGesture, I want that when I click(touch) the label, klikPlay() will run its actions. when …

swift uilabel touch-event
How do I sizeToFit a UILabel by changing only the height and not the width?

[self.Review sizeToFit]; Result before sizeToFit: NSStringFromCGRect(self.Review.frame): {{90, 20}, {198, 63}} Result After sizeToFit: NSStringFromCGRect(self.Review.frame): {{90, 20}, {181, 45}} I want the …

objective-c uilabel xcode4.5
Animate UILabel text between two numbers?

I'm new to iPhone and Mac programming (developed for Windows before), and I've got a question: How do I animate …

ios iphone animation text uilabel