Questions tagged [tableview]

A table view is a means for displaying and editing hierarchical lists of information. For example: UITableView in Cocoa Touch.

7929 questions
1
vote
0 answers

Swift Error with (outlets, keyPath, key value and UITableViewCellContentView)

I'm new to swift and I was just working on this program that has a table view with a list of names that the user can search through. It was working fine, until I tried to implement a UISearchbar and it gave me the error Failed to set (keyPath) user…
1
vote
2 answers

How to resize table view cell with image?

I'm trying to make a recipe search app. I am trying to get results from the API and also an image associated with these results and display them in a table view, using the basic table view cell. When I download the image, the image frame is set to…
SmallGrammer
  • 893
  • 9
  • 19
1
vote
1 answer

How to pick certain images to be displayed in a table view

I have created a table view (Xcode 11, Swift 5) in which I have put a collection view and I have also created an array of images: let badgesImages: [UIImage] = [ UIImage(named: "Plastic Bottle Challenge bronze")!, UIImage(named: "Plastic…
1
vote
0 answers

Data I fetched from an XML file in JavaFX doesn't show up in TableView

I am parsing the data from XML & trying to set the tableview with the data from XML. Data I fetched from an XML file in JavaFX doesn't show up in TableView. XML DOM Parser: public class PopulatedDTOExamplesWithParsedXML { public void main(String[]…
1
vote
1 answer

How to order cells based on quiz results?

I've built a likert quiz and I'm trying to create a results page that looks like the second view controller. So far all I've been able to return is the score and personality ranked (first view controller). I'm not sure how I can show the quiz…
1
vote
0 answers

Delegation not updating the array

I'm trying to implement the delegation pattern on Swift. I have a main view controller and a "addInvoiceViewController" view controller which shows up when tapped on the plus button. I want to modify a list in the main view controller when tapped on…
m4thus4n
  • 69
  • 1
  • 6
1
vote
1 answer

UITableView row cell controllers

My first post ever (so please be patient). I am building a group UITableView. Each section is defined and stored in an object called TableViewSectionClass. The rows is different section will use different sub-classes of UITableCell to make the rows…
mputnamtennessee
  • 372
  • 4
  • 14
1
vote
1 answer

When Scroll in table view timer reset to original value in tableview cell

I have list of job (table view) and when I click on any job it means I applied to job and then timer start (30 seconds countdown) within this I can undo may applied job. I have seperate timer on each cell. I used 2 sec timer fuction for reloading…
1
vote
1 answer

deleteRowsAtIndexPaths from outside RootViewController class

I am using XCode's Navigation-based Application template to create an app that centers around an UITableView. I am having some problems deleting some rows in the tableView. In all of the tableViews cells I have added a button by subclassing…
steak2002
  • 177
  • 2
  • 11
1
vote
3 answers

How to detect if TableViewCell has been reused or created

In Swift with dequeueReusableCell API we don't have control over creating of a new instance of TableViewCell. But what if I need to pass some initial parameters to my custom cell? Setting parameters after dequeue will require a check if they have…
Anastasia
  • 3,024
  • 1
  • 23
  • 34
1
vote
1 answer

Change specific row color in javaFX

Here is the code i write to change row color where leather's meter < 200 but i face null pointer exception in if condition. First i get all data from database and add them all to table view so i don't expect null pointer exception. What is the…
kiarash
  • 77
  • 1
  • 5
1
vote
2 answers

Two table views into a single View Controller?

I want to create a new section but without imageView, what do I need to do? Because if I let the string blank (nil not accepted) the titleLabel is going to be aligned with the titleLabel in the first section. I want to make the title in the second…
1
vote
0 answers

Crash in tableView(_:cellForRowAt:) Crashlytics

I was able to get the full crash log of the problem im having but absolutely failed to figure out what is exactly causing the problem in cellforRow, even though everything is optional, and the way i register the cell as the below…
AaoIi
  • 8,288
  • 6
  • 45
  • 87
1
vote
1 answer

Is there a way for changing TableView focus traversable behavior?

I have a simple TableView with Right-To-Left node orientation and setCellSelectionEnabled(true). Now, when the right arrow key is pressed on the table, focus traversable acts on the opposite side, so the left cell will be selected. This is also true…
Amir Victor
  • 181
  • 1
  • 7
1
vote
0 answers

Scroll to bottom TableView with custom section and cell Swift

My tableview has custom sections and cells. Every time the user scroll to the bottom it will call the server and load additional datas. My problem is how do I detect the last section so it could load more data? Each section contain 1 to 3 rows. My…
14079_Z
  • 401
  • 5
  • 20
1 2 3
99
100