Questions tagged [textlabel]

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

70 questions
1
vote
1 answer

Create a textLabel in Roblox using only code

As the title indicates, I am looking at creating a label for a player Gui in Roblox using only code. Under the folder StarterGui, I have a ScreenGui, and as a child of ScreenGui I have a local script with the following code: local ScreenGui =…
Paul
  • 1,277
  • 5
  • 28
  • 56
1
vote
1 answer

Game of Fifteen (Swift): extra touch to confirm all the buttons are arranged

Could anyone tell me what is wrong with the logic? I make a game of Fifteen and faced a problem. I need to be sure all the fifteen buttons are arranged in a proper way: logic: Every time a button is touched 1. function makeMove() changes the…
John Smith
  • 31
  • 4
1
vote
0 answers

How to insert text labels to data points (not in the data) using panel.text() in a lattice plot

I created a scatterplot from the data (see rcode and data below). The y-axis shows the mean rate of sapflow measured from the xylem in trees during transpiration and the x-axis shows the mean ambient temperature. Within the scatterplot, 5 points…
Alice Hobbs
  • 1,021
  • 1
  • 15
  • 31
1
vote
2 answers

TextLabel Cut off in ScrollView

I have a text label containing dynamic text inside of a scrollview. A few lines of text are being cut off from the bottom of the label. I've set everything up in Storyboard using auto layout. I've tried toggling isScrollingEnabled in ViewDidLoad on…
froggomad
  • 1,747
  • 2
  • 17
  • 40
1
vote
1 answer

How can I make a second table's view list dependent on which row is selected in the previous table view?

I have a dictionary with keys that have multiple values. On the first view controller, I want the keys of the dictionary to be the table view cell's text, one for each row. Depending on which row (that has a dictionary key as a label) is selected I…
Captain Code
  • 277
  • 1
  • 3
  • 13
1
vote
1 answer

Set height of label

To make my app more responsive I want to set the height of my label to expand it over the full cell. It's now this: https://blazor.nl/uploads/get/cd6a93c852623266882afce5b480b804/IMG-0296 How can I do this? My label is cell.textLabel.text =…
Anoniem
  • 17
  • 7
1
vote
1 answer

How to alter ggplot2 text labels that are based off of legend values

I'm trying to create a stacked bar chart that uses the values in 'MaskID' to create text labels. Each unique value in 'MaskID' will have its own color and I want the names of the values to be with their corresponding colors on the bar plot. p <-…
anonymous
  • 815
  • 3
  • 13
  • 21
1
vote
1 answer

How to access text of a label in a UICollectionViewCell from a different method?

I have a class of type UICollectionViewController. In this class I have variable for the label of a UICollectionViewCell: var cellTitle = UILabel() I also have the collectionView method cellForItemAtIndexPath: override func…
EthanW
  • 63
  • 1
  • 4
1
vote
1 answer

Adding two text labels (one dynamic and one static) in the same table cell

I have a tableview with custom cells inside a view controller. My tableview works properly. What I am trying to do is develop the image below programmatically. Where "label" is the text that is custom and changes depending on some input. How can I…
user3211165
  • 225
  • 1
  • 3
  • 14
1
vote
2 answers

Sizes of UITextLabel inside UITableViewCell

I have subclassed UITableViewCell by only overriding the -(void)layoutSubviews method: -(void)layoutSubviews { [super layoutSubviews]; //The default implementation of the layoutSubviews CGRect textLabelFrame = self.textLabel.frame; …
Ra1nWarden
  • 1,170
  • 4
  • 21
  • 37
1
vote
1 answer

uitableview cells blank but correct text in console

i Have two issues 1) if i dont comment out the if(cell==nil) then the text labels dont show in one of my tableviews on my phone. 2) the other i have the same problem, but if i have this commented out the text doesn't appear to change. However if i …
Mark Gilchrist
  • 1,972
  • 3
  • 24
  • 44
1
vote
2 answers

Changing the text of a Jlabel from another method

I apologize if the solution to this question is obvious, I am sure the solution is simple, I just cant seem to get it right in my head. I have created my JFrame as shown in the code below. I am looking to change the text of a label ( lblStatus )…
Daniel Flannery
  • 1,166
  • 8
  • 23
  • 51
0
votes
1 answer

Xcode - output (array) in *.html file possible?

Is it possible to implement a Xcode array to a *.html file? The *.html is a local file in my app. The output is a normal UiWebView. some text [myXcodeArray] some text I would like to save a TextInput in Xcode. This array…
webschnecke
  • 919
  • 1
  • 8
  • 21
0
votes
1 answer

How to display text label in tableView cell

I have populated a tableview with an array of arrays, but I do not know how to display text as the cell label. I want to use the string in the "0" position of the array that is inside the array as the text label. Thanks. Here's my code: -…
novicePrgrmr
  • 18,647
  • 31
  • 81
  • 103
0
votes
2 answers

Setting TextLabel Position Objective-c

I have a Scroll View with many objects in it,since i cant edit the position on scrollview in InterfaceBuilder,how i set the position of the object programmactily? Something like: myTextField.x = 50; myTextField.y = 540;
Vinicius Albino
  • 743
  • 2
  • 8
  • 21