uilabel Questions

4

Solved

I'm new to iOS development. I've got a label LatestInfo this has text and is meant to have a link to a website: e.g. For the latest information visit example.com/latestInfo I want the display to ...
Colan asked 16/7, 2015 at 7:14

2

Solved

I have a UITextView with the following text: textView.text = @"aaa a a a a a a zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"; When I run it in the CGRect that I provided it goes like this: aaa a a a a a a z...
Lauter asked 23/1, 2015 at 8:38

7

Solved

I have a UILabel in my ViewController created using storyboards. The font, size and color of the label's text, its alignment - all set in the storyboard. The label in the storyboard is connected to...
Valletta asked 23/1, 2013 at 19:45

10

Solved

Is there an easy way to get (or simply display) the text from a given line in a UILabel? My UILabel is correctly displaying my text and laying it out beautifully but occasionally I need to be abl...
Sonni asked 12/12, 2010 at 10:42

14

Solved

I have a UILabel with background color as grey. I want a blinking effect on this label like it should become a little white & then become gray and it should keep happen till I turn it off prog...
Devinna asked 3/6, 2011 at 7:58

12

Solved

I have a custom UIButton with UILabel added as subview. Button perform given selector only when I touch it about 15points lower of top bound. And when I tap above that area nothing happens. I fou...
Beagle asked 31/1, 2012 at 12:58

1

I have been trying to troubleshoot glitchy table view scrolling performance. Running it through Instrument's Time Profiler shows that decent amount of time is spent setting NSAttributedString to UI...
Kamerad asked 22/8, 2016 at 5:24

5

Solved

I am creating a UILabel programatically. But the below piece of code doesn't give me rounded corners. I think I am missing out something very basic. var textLabel:UILabel? = UILabel() textLabel?....
Quadrille asked 7/9, 2017 at 7:29

5

Solved

Is it expected that a multi-line UILabel with a custom lineSpacing attribute include that line spacing even when the label's text fits on one line? Here is my label: let label = UILabel() label.n...
Indiscipline asked 29/8, 2015 at 22:5

12

Solved

How do I create a UILabel programmatically using Swift in Xcode 6? I have started with a new "Single View Application" in Xcode 6 and selected Swift for this project. I have my files AppDelegate.s...
Trapeziform asked 6/6, 2014 at 12:21

4

Solved

I understand that by using NSTextAlignment.Natural you allow a label draw it's content using the default righting direction for a given language, which helps heaps with localisation, allowing the l...
Selachian asked 27/8, 2015 at 9:44

14

Solved

I want to calculate number of lines and height of UILabel dynamically from given text for same.
Pedate asked 24/8, 2011 at 10:32

4

I have a square UILabel (in yellow color) which contains a single letter. I have used the following code from this SO answer to adjust the font size such that it fits into the UILabel: letterL...
Fidellas asked 22/1, 2016 at 17:29

14

Solved

I'm setting a new text value to a UILabel. Currently, the new text appears just fine. However, I'd like to add some animation when the new text appears. I'm wondering what I can do to animate the a...
Involve asked 18/6, 2010 at 22:44

2

Solved

How do you reverse the mask layer for a label? I have a textLabel, which I use as a mask for an imageView that contains an arbitrary image as follows: let image = UIImage(named: "someImage") let i...
Comte asked 21/4, 2016 at 3:15

5

Solved

In our current UI, next to certain labels, we have a help-tip button that when clicked, explains the details of what the label references. As such, VoiceOver identifies these two items as separate ...
Clericalism asked 6/9, 2016 at 18:38

5

Solved

I need a way to change UILabel's font with an animation. I saw many ways to animate changes in font size but I need a way to change it's type (bold ti thin for example).
Uplift asked 27/6, 2013 at 11:29

38

Solved

I'm looking to set the left inset/margin of a UILabel and can't find a method to do so. The label has a background set so just changing its origin won't do the trick. It would be ideal to ins...
Miskolc asked 13/8, 2010 at 12:12

5

Solved

I have a NSAttributedString like so: NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"testing it out @clickhere"]; NSInteger length = str.length; [str addAttrib...

4

Solved

I am trying to add tap gesture for a dynamically created UILabel in a function in swift 4, but it is not firing UITapGestureRecognizer function. it is working when i add tap gesture from viewDidLoa...

4

In my app I use a custom cell that has a set of labels, I see xcode showing warning concerning font size in custom cell xib file: warning message file://localhost/Users/mahmoudalgayed/Desktop/Ajur...
Hasten asked 12/4, 2012 at 22:16

3

Solved

I've got several UILabels with multiple lines of text, but the line spacing is larger than I would prefer. Is there any way to change this?
Victuals asked 24/8, 2012 at 15:48

7

Solved

I have UILabel that display single line if it have space for it. However, I need to force it always display 2 lines, even if there is enough space for display it in 1 line. Robust way is to reduc...
Blindworm asked 11/7, 2016 at 13:12

5

I'm trying to display some random text into a UILabel and of course I have nothing but its width. Is there a way to set my UILabel's height and/or number of lines depending by the text contained in...
Poteen asked 1/9, 2014 at 11:7

11

Solved

I can't seem to modify the font size of a UILabel with the following code: itemTitle.font = [UIFont systemFontOfSize:25]; As i increase the number 25 to something greater, it seems to only add a...
Budgie asked 7/5, 2012 at 0:44

© 2022 - 2024 — McMap. All rights reserved.