Questions tagged [textlabel]

Returns the label used for the main textual content of the table cell. (read-only)

70 questions
0
votes
0 answers

How to make the text in the text label not able to edit and if something is typed, it disappears?

I'm having trouble with making login page, beaucose I don't know which label is for login, and which is for password. Can anyone help me please? I tried to make a text invisible, but it didn't work.
TallJakub
  • 1
  • 1
0
votes
1 answer

Text Label from variable value

Good afternoon, I have a problem, I would like to know if someone can help me: The aim is to project its value into the text of a label on the next screen. from __future__ import print_function import os.path from google.auth.transport.requests…
0
votes
0 answers

How to display text labels at the end of line graph?

I have created a multiline graph in d3.v6 about the fertility rate in each contry. Now I want to display the name of the country for each line everytime you hover with the mouse in the line. I am using the following code which doesn't show any error…
Mr.Muu
  • 97
  • 8
0
votes
3 answers

Why is the text not showing up on screen?

I'm trying to create a countdown where the text displays, "GAME STARTS IN: " and using a for loop and Thread.Sleep a variable counts down from three. I started by using the designer to create the "game starts in:" part, but after the variable…
ineedhelp
  • 11
  • 3
0
votes
2 answers

Shrink custom textLabel and detailTextLabel in custom UITableViewCell

I'm using a slightly customized version of Loren Brichter's Fast Scrolling script and I'm having a problem where the labels in the cells don't stop if they reach the end of the cell. When programming table views the standard way, if the textLabels…
wstr
  • 910
  • 2
  • 13
  • 23
0
votes
1 answer

How can I remove/adjust the cell padding/margin of UITableViewCell?

I am using the below code; it works but the text appears with few pixels left padding/margin. How can I remove/adjust the cell padding/margin? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { …
itsazzad
  • 6,868
  • 7
  • 69
  • 89
0
votes
1 answer

Swift: Tracking User's score

I'm trying to create a Quiz app that consists of two buttons, false and true button. My question is, as I answer more questions in the app, I want the textLabel to keep track of my score. And then when I circle back to the first question again, it…
Mervan
  • 27
  • 1
  • 8
0
votes
0 answers

Why is JTextField Action Listener not working

Ok, so I am new to Java programming and I wanted to make a simple JAVA GUI app that you first enter an amount of seconds and then you click a button as many times as you can in that number of seconds (Like a Click Speed Test Concept). It's far from…
alexdumitru
  • 103
  • 1
  • 8
0
votes
1 answer

How build a chart plot with a text column vs number column in matplotlib from a file.txt?

I'm new in python and now I'm trying to do a chart plot in matplotlib from a file with a lot of data that have one number column and a text column in this format: 34 Louis Mathews Sullivan 58 Frederick Milton2 1 Mario Cruz Muñoz I would like to…
Hdez
  • 151
  • 7
0
votes
3 answers

re size the UITable view textlabel

I created a UITableView and wrote the following code in cellForRowAtIndexPath static NSString *CellIdentifier = @"RootViewControllerCellIdentifier"; UITableViewCell *cell = [self.tableView queueReusableCellWithIdentifier:CellIdentifier]; if (cell…
Vipin
  • 4,718
  • 12
  • 54
  • 81
0
votes
1 answer

How to delete label after some event in tkinter

I have an application in which the images(created using Label(root,image='my_image)) change whenever some event occurs. Buttons are not used. One of my image has a label having text above an image. So it occurs where i want it. But when i move to…
Shubh9718
  • 63
  • 12
0
votes
4 answers

Swift: How do I achieve adding a background color to a tableView textLabel

I'm working with TableView and I was hoping to add a background colour to a selected cell's text. Something like this: The image represents a cell, the background color is separated. This is what is needed. I tried doing the following but it adds a…
N. Der
  • 507
  • 4
  • 18
0
votes
1 answer

Last item in UITableView unreachable with textLabel.text

I'm populating a UITableView with an array of items I retrieve from the interwebs. The code in question selects an item from a list populated from an array from the interwebs, then sends a request back to a different php script->sql table etc based…
Casey
  • 1
0
votes
0 answers

aligning table view cell text label

Xcode 10.1, Swift 4.2 I've got a UITableView with Table View Cell which has it's Label, and these all show up in the storyboard. The label is inset from the cell by what appears to be a distance of 15, although I think this will be different on…
Ian
  • 109
  • 2
  • 10
0
votes
0 answers

text in Textlabel is reset to first value after i go back and again into this view controller....how can i save it?

I'm new in programming and want to try some things. So I have two view controllers. The first one has a button, which brings me to the second view controller, when tapped. In the second view controller, I have a table view with a prototype cell. In…