Returns the label used for the main textual content of the table cell. (read-only)
Questions tagged [textlabel]
70 questions
0
votes
2 answers
TextLabel colour automatically changed when i Scroll UiTableView
I changing textlabel color on didSelectRowAt but when I scroll UITableView it also effects in other textlabel also
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let cell = tableView.cellForRow(at: indexPath) as!…

Prasann
- 135
- 1
- 9
0
votes
1 answer
Referencing textLabel from collectionViewItem
I have trouble accessing the stringValue of a textLabel in a xib-file, that I use for my generic NSCollectionViewItem.
Registering collectionView from xib-file:
override func viewDidLoad() {
super.viewDidLoad()
let item = NSNib(nibNamed:…
0
votes
0 answers
multipanel plot with labels extracted from htest R objects
ks.test returns a list with class "htests", but I do not find the way to store those lists with the proper class into a vector. The code I am using is:
random.sim <- read.delim("ABC_searStatsForModelFit_model0_RandomValidation.txt")
labels <-…

Pablo
- 13
- 4
0
votes
1 answer
how to add text labels to figs and merge them together
I have two figs fig1.png and fig2.png made of matplotlib in python code, now in some papers, I want to merge these two figs together, and give them (a) and (b) text labels in the top left area, respectively. How can I use matplotlib do it? I have…

Yin Ge
- 35
- 4
0
votes
2 answers
textLabel?.text displays only "Label" but not the actual data passed from previous Table View
What I want to achieve: I want to click on one of the rows in my first view controller to move to another table view controller.
The problem: When I click the row, the view only shows "Label" and not the data I intend to pass through. Granted the…

Bobby Nwokonneya
- 3
- 3
0
votes
1 answer
How to add to number in label in kivy?
I am trying to update my label in this way, I have a label and a function, when I use this function, my label add a number in it's text. In this way, if my label is 1 before I click the button, after I click a button, the label change to 1+x. I have…

victorcd
- 429
- 2
- 6
- 17
0
votes
1 answer
searching UITableView detailTextLabel and textLabel
I am using the same code displayed in this Stackoverflow URL How do I link the search bar to display results in swift/xcode
and I am wondering if there is also a way to search the detailTextLabel seeing as I have included a subtitle in the cells. …

user3203552
- 53
- 1
- 1
- 5
0
votes
1 answer
TextLabel returning a null for prefilled text
I'm using Swiftforms, found here, to add a form to fill out for the user. Since I already have most of the information I'm filling out the form for the user and then they are able to edit it if they choose and click submit. When I prefilled the…

Pablo Picasso
- 251
- 1
- 4
- 13
0
votes
1 answer
changing UITableViewCell text font
I was able to change the font of the tableViewCell text using this code
cell.textLabel?.font = UIFont(name: "Snell Roundhand", size: 40)
However i would also like to make this font bold, so far I've tried to do this by using this code
…

Kieran
- 77
- 1
- 8
0
votes
3 answers
applicationWillEnterForeground gets found nil for textLabel
I'm trying to change text on label when app will enter foreground but I always get
fatal error: unexpectedly found nil while unwrapping an Optional value
ViewController.swift
@IBOutlet var textLabel: UILabel!
func showLabel() {
…

chrisco
- 147
- 2
- 10
0
votes
1 answer
how to pass boolean from an alertview to a custom tableview cell in swift
***UPDATED: Yay! it works now!***I've been looking around for hours but have not found exactly what I need to figure this out. There are a few answers out there using objective c but I am trying out Swift and I can't seem to get the code to…

IWannaLearn
- 55
- 1
- 9
0
votes
1 answer
iOS 7 - viewForHeaderInSection textlabel always gray
The viewForHeaderInSection's textLabel's textColor is always gray. BackgroundColor changes as expected. The following is the code creating the headerview. It does get in to the "!headerView" condition. Using ios sdk 7.1
- (UIView…

Austin Haws
- 364
- 2
- 6
- 15
0
votes
3 answers
Xcode - Change label data on UITableViewCell
I have a TableView that i populate with custom cells. In this code i would like to set the data on my different labels, but it doesnt seem to work. I can not add any outlets, not sure why i cant do that. When i try to change the data with…

Lord Vermillion
- 5,264
- 20
- 69
- 109
0
votes
1 answer
Tick label breaking(word-wrap)
I'm using jqPlot
Look at the right-bottom corner
Left side is correct, but the right side isn't.
There is a way to fix word-wrap on tick labels?
EDIT:
$(document).ready(function(){
var plot2 = $.jqplot ('chart-line',…

lcssanches
- 995
- 12
- 33
0
votes
2 answers
UITableViewCell textLabel height resets after selecting/highlighting same cell
I have an issue regarding UITableViewCell's textLabel property when reselecting (touching without lifting a finger) a cell that's already selected.
I have a custom contentView being added in the background just below the textLabel that has a dynamic…

Bill
- 1
- 1
- 5