Returns the label used for the main textual content of the table cell. (read-only)
Questions tagged [textlabel]
70 questions
127
votes
5 answers
Is it possible to adjust x,y position for titleLabel of UIButton?
Is it possible to adjust the x,y position for the titleLabel of a UIButton?
Here is my code:
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[btn setFrame:CGRectMake(0.0f, 0.0f, 100.0f, 100.0f)];
[btn…

RAGOpoR
- 8,118
- 19
- 64
- 97
31
votes
12 answers
uitableviewcell textlabel too long and push detailtextlabel out of view
When i'm using UITableViewCellStyleValue1, i got a long string of textLabel, and somehow the detailTextLabel got push out from the view.
When i shorted my textLabel text, then i can see the detailTextLabel's text.
Is there anyway to limit the width…

lucas
- 443
- 1
- 5
- 11
10
votes
4 answers
How to Make a Secret iOS App Text Animation
I'm trying to duplicate the Secret App's Text Label transition. Does anyone the best way to approach it?
It looks like they have each letter start out as clear text color and then animate it to gray and then white text color.
Here are some…

NatashaTheRobot
- 6,879
- 4
- 32
- 27
4
votes
4 answers
C# Textlabel Fade in/out
I am looking to have a textlabel fade in and out on a button press. I notice that textlabel does not have an opacity parameter. Is there another way that I can achieve the desired result ?

Daniel Flannery
- 1,166
- 8
- 23
- 51
3
votes
1 answer
Why does my UIButton.titleLabel.text disappear when I place an image in the button?
I've had this problem before but was able to work around it until now, Basically I'm creating a custom UIbutton setting its image as a uiimage and then the button that has had a label until I implimented the below code now loses its label. I need…

nickthedude
- 4,925
- 10
- 36
- 51
3
votes
1 answer
set a plotyy function vs text in matlab
I need to plot two sets of data on separate y axis and plot them vs an x that is text
y1 =
0.0217545037216382
0.0218522372528616
0.00848250610252238
0.00631477252766555
0.00836543852985331
0.00404498017959712
…

mgc77
- 113
- 1
- 9
2
votes
1 answer
Compose app - Is it possible to programatically get component tree information from RootView/DecorView?
Our SDK can't be inline with app's code, is there a way to retrieve UI tree info without app developer manually add code snippets to capture the "Component Tree" data without using the Layout Inspector tool?

changjieyang
- 136
- 4
2
votes
2 answers
How to prevent textLabel to be truncated when using UITableViewCellStyleValue1?
When using UITableViewCell with UITableViewCellStyleValue1 style the textLabel.text is being truncated when detailTextLabel is pretty long.
static NSString *CellIdentifier = @"Cell";
cell = [[[UITableViewCell alloc]…

Joshua
- 1,974
- 2
- 23
- 39
2
votes
3 answers
Can't add textLabel to a UICollectionViewCell?
I have a class file that is a subclass of the UICollectionViewController class. In my cellForItemAtIndexPath method, I am trying to set the textLabel of the cells. However, there is no textLabel option in the completions. This is the method so…

EthanW
- 63
- 1
- 4
2
votes
1 answer
d3 - Position of text on a map
im am trying to put labels on the administrative regions on this map of Ukraine. Chrome developer tools tells me that they exist with the right label and coordinates. Nonetheless they dont appear on the map.
The map
The code ive…

386er
- 87
- 9
2
votes
1 answer
TextAlignment not working for UITableViewCell Label
I am trying to center the textLabel in my UITableViewCell with this code:
cell.textLabel.textAlignment = NSTextAlignmentCenter;
However nothing is changing and the label is still in the left side. Anyone know why?

Abdullah Shafique
- 6,878
- 8
- 35
- 70
2
votes
1 answer
Form flickers upon Text Label update
I am fully aware that this is an issue asked many times but I have not found a perfect solution.
Problem: I have a simple Windows Form with a few table panels, a text area, and a text label that serves as a character counter - Very innocent setup.…

user1836155
- 858
- 14
- 29
1
vote
2 answers
textLabel in a UITableViewCell two+ lines (no cutoff)
I have a RSS feed reader app which each cell collets a title from an element in an XML from RSS feed apple website. Now the titles are very long so what I wanted to do was increase the size of the each cell using:
-(CGFloat)tableView:(UITableView…

user973985
- 291
- 2
- 7
- 14
1
vote
1 answer
How to change textLabel so it doesnt overlap the detailtextlabel on table view
IMAGE: http://postimage.org/image/35y3ji58k
the problem can be seen, in which most display okay but the names continue to overlap the detail title.
i would like the textlabel to have the "..." like the detail label and the detail label to always…

Chris Bibb
- 11
- 1
1
vote
1 answer
How can I make changing a text label show to everyone?
My script is:
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
script.Parent.ClickDetector.MaxActivationDistance = 0
script.Parent.BrickColor = BrickColor.new("Really red")
local mapfolder = game.Lighting.Folder
…

Michael Mgbeojirikwe
- 13
- 5