Top "Uilabel" questions

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

sizewithattributes not returning correct size

I am tring to calculate the height of text labels in uitableview cells. After seeing that sizewithfont was deprecated with …

ios objective-c cocoa-touch uilabel sizewithfont
UITableViewCell + Dynamic Height + Auto Layout

I came from this great answer: Using Auto Layout in UITableView for dynamic cell layouts & variable row heights I've …

ios uitableview autolayout uilabel row-height
Set part of a UILabel's text bold and another part italic

Is there a way to set part of a UILabel to be bold and another part italic? As in The …

ios cocoa-touch uilabel text-styling
Swift Xcode "EXC_BAD_INSTRUCTION"

when I try to run my game I get this fatal error: unexpectedly found nil while unwrapping an Optional value …

ios swift nsstring uilabel exc-bad-instruction
How can I detect taps on a particular part (substring) of a UILabel?

I am new to iOS development. I dont know whether this questions has been asked already or not, I tried …

ios objective-c uilabel uitapgesturerecognizer
how to get all UILabels within a UIView

I need a way to get all UILabels within a UIView without having to go through all the views within …

ios objective-c uiview uilabel subviews
Two lines of text in a UISegmentedControl

Try as I might, I can't solve a UISegmentedControl bug for an iOS7 iPhone app. When I create the segmented …

ios uilabel uisegmentedcontrol uiinterfaceorientation
How do you make a vertical text UILabel and UITextView for iOS in Swift?

If you came to this question based on the title but are not interested in Mongolian, you might be looking …

ios swift uilabel uitextview mongolian-vertical-script
iOS7 UILabel to adopt same tintColor as window

I know that for elements of classes UIButton and UIBarButtonItem they automatically assume window.tintColor as the main colour, which …

uilabel ios7 uibarbuttonitem tintcolor
Marquee effect for labels in iOS

Is there any equivalent to the Android's android:ellipsize="marquee" for iOS? I've read some posts here regarding this scrolling …

ios text uilabel marquee