uilabel Questions

7

Solved

I've a issue regarding showing registered symbol as superscript. I've used unicode value \u00AE, but it shows in same line. I'd like to have it a bit top of remaining texts. Done googling, but fou...
Mcmurray asked 31/5, 2011 at 14:29

6

Solved

How to force UILabel to draw a text with upper case chars?
Ultra asked 15/9, 2013 at 21:56

5

Solved

The problem I'm using a UITableView to show the list of transactions of a credit card. If the transaction is a chargeback, I'm adding a strikethrough style to the label: The problem happens whe...
Selfmoving asked 30/10, 2019 at 14:51

11

Solved

I'd like to append an NSTextAttachment image to my attributed string and have it centered vertically. I've used the following code to create my string: NSMutableAttributedString *str = [[NSMutabl...
Diminished asked 29/9, 2014 at 17:47

5

Solved

I am unable to change the UILabel text. The code for the the UILabel inside viewDidLoad is : startLabel=[[UILabel alloc] initWithFrame:CGRectMake(75, 395, 200, 30)]; startLabel.text=@"Recording So...
Strath asked 26/7, 2011 at 19:33

2

Solved

I have a label which shows the pink area on the screen. However, the word "gender " is not shown in the top line even if it has enough space. Why is it not showing up in the first line itself? What...
Bader asked 18/6, 2020 at 6:9

4

Solved

I have a custom UIView that contains a UILabel and a UIImageView. How do I make my UIView clickable? I want the background of the UIView to change any time a user starts to press down on the UIView...
Downdraft asked 19/3, 2013 at 3:29

7

Solved

I've been working on a small project using Xcode. It uses a lot of labels, textfields, etc. I've finished with most of the layout, the constrains, and the forms, titles, etc. After which, the clien...
Headley asked 15/1, 2016 at 9:47

2

Solved

When I attempt to display a Japanese string in a UILabel on iOS, it gets displayed using Chinese encoding instead of Japanese. The two encodings are nearly identical, except in a few specific cases...
Ravelment asked 7/2, 2022 at 3:31

6

Solved

When the text of a UILabel gets truncated there are 3 dots inserted by default. Is it possible to change these characters or disable them?
Zebedee asked 25/1, 2011 at 12:22

0

Is there something equivalent in SwiftUI as lineBreakStrategy that we set for UILabel?
Pierette asked 9/2, 2022 at 15:57

15

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 NSAttributedString but I have no idea how t...
Simpatico asked 27/8, 2010 at 17:52

15

Solved

Is it possible to auto-resize the UILabel box/bounds to fit the contained text? (I don't care if it ends up larger than the display) So if a user enters "hello" or "my name is really long i want i...
Brahmanism asked 9/1, 2012 at 23:56

21

Solved

I want to create a UILabel in which the text is like this How can I do this? When the text is small, the line should also be small.
Frieda asked 30/10, 2012 at 5:11

5

Solved

This is my code that show the Links in a UILabel import UIKit class ViewController: UIViewController { @IBOutlet weak var textFiled: UITextField! @IBOutlet weak var label: UILabel! override...
Wrapping asked 2/6, 2016 at 17:34

5

Solved

Is there any way to have a label wordwrap text as needed? I have the line breaks set to word wrap and the label is tall enough for two lines, but it appears that it will only wrap on line breaks. D...
Brookhouse asked 13/7, 2009 at 18:49

0

Faced the problem that on iOS 15.2 all labels incorrectly handle line break mode. Below are examples of rendering labels: Line Break Mode: .byClipping Xcode 13.0 iOS 15.0. Xcode 13.2.1 iOS 15.2...
Yeaton asked 28/12, 2021 at 8:30

7

Hey :) I have a label and I need to make the width of that label smaller or larger accourding to the text amount, and I found only how to adjust the text to fit the size but the how to adjust the s...
Physostomous asked 23/7, 2015 at 15:48

6

Solved

How do I set a UILabel lineBreakMode to break words and add hyphens to broken words? a label with a broken wo- rd should look like this
Gerontology asked 24/9, 2013 at 10:49

4

I have a stack view with these properties: Axis: Vertical Alignment: Fill Distribution: Fill I add other horizontal stack views to that vertical one with the below properties: Axis: Horizontal Ali...
Plaid asked 3/1, 2018 at 15:14

5

Solved

I've got a UILabel set up with auto layout in such a way that its height is based on its intrinsic content size, such that it gets taller when there are more lines in it. I need it to be centered a...
Devolve asked 8/9, 2013 at 20:17

6

Solved

How to implement MarqueeLabel in iOS. I found example in Objective-C but I'm using Swift.
Magus asked 8/10, 2015 at 5:6

8

Solved

I have a problem with UILabel subclass cutting off text in the bottom. Label is of proper height to fit the text, there is some space left in the bottom, but the text is still being cut off. The...
Parmenides asked 23/3, 2016 at 11:2

4

I would like to do that in my app : The label is like : username comment I don't know how to add the "button" within the label; I found this library but I'm not sure it will work? https://githu...
Drollery asked 5/6, 2017 at 9:34

4

Solved

I'm trying to set a limit in my label to 10 characters, I'm a complete newbie to programming in general so its my 3rd month so far... anyway thanks in advance :-)
Vlada asked 5/10, 2015 at 22:8

© 2022 - 2024 — McMap. All rights reserved.