I’m having trouble trying to achieve some very basic layout behavior with Auto Layout. My view controller looks like this in IB: The top label is the title label,...
When putting multiline label (with linebreak set to Word Wrap) into a stack view, the label immediately loses the linebreak and displays the label text in one line instead....
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. On a device with iOS 7.1...
I currently have a UILabel: factLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 100, 280, 100)]; factLabel.text = @"some text some text some text some text"; factLabel.backgroundColor = [UIColor clearColor]; factLabel.lineBreakMode =...
I am trying to calculate the height of a UILabel based on different String lengths. func calculateContentHeight() -> CGFloat{ var maxLabelSize: CGSize = CGSizeMake(frame.size.width - 48, CGFloat(9999)) var contentNSString...
I have a UILabel where I want to add space in the top and in the bottom. With the minimum height in constraints, I’ve modified it to: To do...
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 this may be possible using...
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 have text and in this text...
label.font.pointSize is read-only, so I’m not sure how to change it. 21 Answers 21