iOS: Multi-line UILabel in Auto Layout
I’m having trouble trying to achieve some very basic layout behavior with Auto Layout. My view controller looks like this in IB: The … Read more
I’m having trouble trying to achieve some very basic layout behavior with Auto Layout. My view controller looks like this in IB: The … Read more
When putting multiline label (with linebreak set to Word Wrap) into a stack view, the label immediately loses the linebreak and displays the … Read more
I’m currently looking at a UILabel with the property addMessageLabel.layer.cornerRadius = 5.0f; On a device with iOS 7.0 installed, it has rounded corners. … Read more
I currently have a UILabel: factLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 100, 280, 100)]; factLabel.text = @”some text some text some text some text”; … Read more
I am trying to calculate the height of a UILabel based on different String lengths. func calculateContentHeight() -> CGFloat{ var maxLabelSize: CGSize = … Read more
I have a UILabel where I want to add space in the top and in the bottom. With the minimum height in constraints, … Read more
How do I align text in UILabel? 10 Answers 10
How would it be possible to include both bold and non-bold text in a uiLabel? I’d rather not use a UIWebView.. I’ve also … Read more
I have been searching this for hours but I’ve failed. I probably don’t even know what I should be looking for. Many applications … Read more
label.font.pointSize is read-only, so I’m not sure how to change it. 21 Answers 21