The UILabel class implements a read-only text view in iOS.
I have created a normal UILabel and want to be able to add line spacing to the text which does …
swift uilabel nsparagraphstyleI am putting a label on a UIToolbar (per this tip: Adding a UILabel to a UIToolbar). But the toolbar …
iphone uilabel uibarbuttonitem uitoolbarI want to add "Read more" at the end of the paragraph. When I click on the "Read more" text, …
ios swift3 uilabel uitextview expandIn my app I have a global custom font applied to all labels like so: UIFont *font = [UIFont fontWithName:kMyFontName …
ios objective-c uilabel nsattributedstring uiappearanceI create UILabel and CATextLayer in my app using following code - (void)viewDidLoad { [super viewDidLoad]; self.textLabel = [[UILabel alloc] …
ios uilabel calayer catextlayerI have a NSAttributedString like so: NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"testing it out @clickhere"]; NSInteger length = str.length; [str …
ios iphone uilabel nsattributedstring uitapgesturerecognizerHow can i have a UILabel with two different colors for the font? I will have text in two different …
ios xcode uilabel nsattributedstring textcolorI try to set UILabel with text of different colors programmatically using, NSMutableAttributedString * string = [[NSMutableAttributedString alloc] initWithString:@"firstsecondthird"]; [string addAttribute:…
ios objective-c xcode uilabel textcolorWhen the text of a UILabel gets truncated there are 3 dots inserted by default. Is it possible to change these …
iphone uilabel truncationI want to build typography poster using UILabel left and margin: 25 320(device width) - 50(sum of the margins) = 270(label width …
swift uilabel sizetofit