Questions tagged [uitableview]

UITableView is a class used for displaying and editing lists of information on iOS. A table view displays items in a single column. UITableView is a subclass of UIScrollView, which allows users to scroll through the table, although UITableView allows vertical scrolling only.

-1
votes
0answers
7 views

button in UItableviewCell is not responding after put the app to the backstage and bring it back

I have a UITableViewCell which contains a button, and the cell I give it the same height as UIScreen.main.bound.size.height. After the initialization. everything is working fine, the button responds ...
1
vote
2answers
29 views

is there any option to show imageview in Grid according to width of screen in uitableview in swift

i want to show 3 images in a row of a uitableview. but if i have more than 3; it should in next row of table. Here is the Code var abc = fileimage.count for i in 0..<abc { var tempimage = ...
-1
votes
0answers
70 views

My custom cells are not showing up in my tableview

So I have been trying to get my custom cells to show up on this tableview, but I am not sure as to why they are not showing up I have already checked other stack overflow questions and tried their ...
1
vote
1answer
24 views

Remove a uiview once a table view cell is tapped (swift)

I have a custom xib table view cell that has a green uiview on it. The uiview acts as a new message indicator - whenever a message comes in, the green view is displayed. When a user taps the cell, I ...
0
votes
1answer
20 views

UITableViewCell segue to another UITableViewCell does not run

I have a UITableViewCell with an IBAction button that calls a query to Firestore. Once the Query runs i want to segue to another UITableViewCell and show the data. I'm not sure what i'm ...
0
votes
0answers
15 views

How to reference outlet inside custom cell from a different class (Swift)

I have a tableView with a custom cell that has a UITextView inside it and I want to make the UITextView of the last cell in the tableView the firstresponder when a button is pressed. However, I'm not ...
0
votes
1answer
18 views

Margin before first Table View Section

Why do I have margin before first table view section? Is it not supposed to be only between sections?
-1
votes
2answers
36 views

How can I display the response on the table view

I am building an app which makes a request to an API and displays the response in a table view. I am using using decodable. I am able to see the response when I print it. But I am not able to display ...
0
votes
1answer
24 views

Want to remove a row from the tableview and delete the corresponding object from the array

I want to delete one row from a tableview in Swift 5 and remove the object from the array. I searched a lot but couldn't get it done. I tried all the related solutions available on StackOverflow but ...
1
vote
1answer
23 views

How to reference custom UITableView cell inside another function (Swift)

I am trying to achieve functionality similar to Apple's reminders app where a tableview holds all the reminders and a + button at the end adds a new object. My objects are held in an array called ...
0
votes
1answer
24 views

How to pass data from UITableView to UIViewController without segue

I need to pass the title of Row in UITableView to my ViewController. I don't have VC in storyboard (I've created it by code). So I can't use segue. func tableView(_ tableView: UITableView, ...
0
votes
0answers
32 views

UITableView is not displaying results correctly even though indexpath is being set correctly, any experts out there might be able to shed some light?

I have taken just a very simple part of the code here to demonstrate just one of a couple of issues I am using UITabelView. Firstly when putting some test data into the table which is back by three ...
1
vote
1answer
24 views

Fatal error: Index out of range, Due to pressing like and heart button again and again

When ever I pressing like and heart button again and again, It crashes the App and says that "Fatal error: Index out of range". func tableView(_ tableView: UITableView, numberOfRowsInSection section:...
-1
votes
0answers
10 views

Calling UIButton function in didselctedrow

I have a TableView and if someone pressed I want that at the position of index path the checkbox will collect! At the moment only the checkbox is check when some pressed the current position of the ...
0
votes
2answers
26 views

I am trying to get an UIActivityIndicatorView to show when I am loading a UITableView

This problem has been answered several times before on this site, I have tried them all and none work. The difference I think is that I have a UITableView inside my UIViewController. I have tried when ...
2
votes
1answer
84 views

SwiftUI - Search in List Header

I am trying to to recreate what everyone know from UITableView with SwiftUI: A simple search field in the header of the tableview: However, the List View in SwiftUI does not even seem to have a way ...
1
vote
0answers
28 views

Cell still selectable in Editing Mode

I am making a UITableView in editing mode with multiple selection. When it's in the editing mode and is tapped for some reason it is triggering the segue to the next page. Is there something I am ...
1
vote
0answers
46 views

How to “Pan” (swipe) a UITableView from top to bottom using UIPanGestureRecognizer , When 1st cell is at the top of the UITableView?

Scenario 1: I have a UITableView without header at the bottom of the View, with a complete display of the first cell and the UITableView Scrolling is disabled. I need to Pan up (swipe up) the ...
0
votes
1answer
40 views

Swift - Combining UITextfield inside UITableView

Does anybody know if this application is using UITableView and have a UITextView inside it? If so, i want to ask how this is done. I also was wondering how a single tap can present an datepicker. I've ...
0
votes
2answers
24 views

I want to use two different custom cells from nib in a single table view. The two prototype cells have different heights

I have a situation where I have to use two different prototype cells for a single tableView. These two prototype cells have different heights. When I am trying to run the application I am not getting ...
1
vote
1answer
26 views

Issue in Showing Collection View in Table View Cell in iOS

i have a table view and i have placed a collection view inside the cell, i'm getting data from API and that data i'm passing to table view and collection view but when i run the app it crashes with ...
0
votes
1answer
21 views

Reading edited UITextFields from custom UITableViewCells

I have list of items presented to the user for editing in the form of a tableView. Once the list is edited, I would like to store the edited list back into an array. I have a loop to read the each ...
0
votes
0answers
5 views

Swift 4.x UITableView with Calender included

I'm looking for a way to configure a tableView in the following style: Model of TableView The upper part is scrolling horizontally while the the vertical part is moved (and vice versa). Does anyone ...
0
votes
1answer
39 views

When tableview cell is selected twice it crashes with error found unexpected nil

Essentially I have a table view controller with cells populated from JSON data. When the user selects the cell a different view controller should open with more information about the cell selected. I ...
0
votes
0answers
36 views

UITextView cutting off last line of text

I am trying to render out a UITextView within a UITableViewCell. For some reason the last line of my text is being cut off. I have followed numerous posts on here and none of seemed to work. As you ...
0
votes
1answer
36 views

Testing a UITableView in a UIViewController programatically instantiated

I want to inject my data manager into my view controller and test it. The ViewController: class ViewController: UIViewController { @IBOutlet weak var tableView: UITableView! var alert: ...
-1
votes
3answers
59 views

How to center a custom CAShapeLayer inside UITableViewCell?

I've created a custom circular progress bar using CAShapeLayer. I can easily center it inside any UIView using view.center but I need to center it inside a UITableView Cell and that's what I get: If ...
0
votes
3answers
50 views

How to change color of the text in visible cell of tableview in ios swift

On Pressing the pen button i can change the color of the theme as u can see. Now i want to change the text inside the visible cells to look like rest of the things color. How can i change the color ...
0
votes
1answer
37 views

Testing the presented UITableViewCell in a UITableView

I'm testing a simple tableView in a UIViewController for fun class ViewController: UIViewController { @IBOutlet weak var tableView: UITableView! override func viewDidLoad() { super....
0
votes
2answers
27 views

How to make consistent display of image in cell in tableView?

I have an image in a custom cell (called "StoryCell"), the reference to which is in a Realm database and which I am loading up in the CellForRowAt with the following code: func tableView(_ tableView:...
0
votes
0answers
39 views

How do I remove effects that appear when reordering tableview cells?

I am facing three problems in my current implementation of reordering tableviewcells. I'm applying shadows to a wrapper view inside content view of tableview cell. To make the cell work for ...
0
votes
1answer
33 views

How to disable trailing swipe on UITableView Swift?

How to ignore the right to left swipe or the Trailing swipe, does anyone know how to accomplish this?
0
votes
1answer
18 views

Stopping/Pausing avplayer created in tableview cell class

I am working on a video feed app with tableview. I create AVPlayer object in tableview cell subclass and assing playitem to it in cellforitem. Everything is working good. My problem is that I want ...
0
votes
1answer
18 views

How to proper update table cell info if data was changed in another tab bar controller?

Good day! I really don't know how to ask google for my problem to find good solution. Please help! I have got tab bar controller with T1 and T2 vc. T1 is tableview controller and it shows posts(cells) ...
1
vote
1answer
35 views

UIButton image won't change when I click on it

I have button in my TableViewCell class with a default image of a box. I want the image of the button to change to another image when it is selected, however this is not working for me. This is the ...
1
vote
1answer
26 views

Set custom font for UITableView swipe action (UIContextualAction)

How do you set a custom font for the title in UIContextualAction? I have tried UIAppearance but without any luck... Cheers! :)
0
votes
1answer
24 views

Blank space between tableview and date picker

i made a show/hide date picker on a button click and show the date on the button, using Tableview. but when i run this, there's weird blank space between inside of tableview and datepicker. when i ...
0
votes
1answer
18 views

Thread 1: Fatal error: Index out of range, return array.count + 1

I have a tableview with at all times one cell. If there is data to download from Firebase it will put it in an array called posts. When there's for example, two "in my case" servers that the user will ...
0
votes
0answers
46 views

Best way for implement multiple TableviewCells

Which is the best way to implement multiple UITableViewCell I have tableview which do have three section one for notification holds switch in UITableViewCell, another edit profile shows the username ...
0
votes
1answer
7 views

How do I customize the header background color, height, and text of a UITableView?

I want to customize my section headers for a UITableView. How do I add text color, background color, and section header height?
-2
votes
1answer
23 views

How to get height of first n cells in UITableVIew?

Say I want to limit table view's height constraint to show only particular number of top cells, how can I get their total height?
0
votes
1answer
33 views

UITableView header and text color

I currently have a UITableView with multiple sections. The header for each section is defined in the delegate like this (code adjusted for testing purposes): [Export("tableView:...
0
votes
1answer
27 views

How to show the current value of slide on the label in a dynamic tableview cell when the slide is dragging?

I created a dynamic tableview cell with a slider and a label inside. I'm trying to show the current value of slider on the label, but I don't want to do it by reloading the table. The following is my ...
0
votes
0answers
34 views

How get style of UITableView Cell with separator size 15 and rounded edges?

How get style of UITableViewCell with separator size 15 and rounded edges? I use Swift 4. I found a lot of information on how to change the size of the split, but along with the chamfer it does not ...
0
votes
0answers
36 views

Unable to dequeue a cell with identifier while using a custom UITableIView

In my setup, I have 3 tableViews (nested) - tableView inside a tableView cell inside a tableVIew cell. My goal is to find out touch events on the “mid-level” tableView. When a mid-level tableView is ...
0
votes
1answer
30 views

can we apply search to tablview of array getting from json parsing

I'm searching in tableView but NSDictionry has no member item it is not filtering search func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {arrFilterLocation = searchText....
1
vote
1answer
25 views

UITableView with multiple sections and custom section header with single cell selection and multiple cell selection

I am setting UITableView with multiple sections and section one has a single selection and section two multiple selections it wants exactly what is happening in UberEats when choosing add-ons and type ...
0
votes
0answers
16 views

Swift NSFetchedResultsController Crashing When Updating An Object / Section

So I have a FRC in a 'resultsTVC' which load a list of CoreData items split into sections by one of the CoreData fields ('label'). If I select a result to edit it, a second 'editorTVC' loads with ...
0
votes
0answers
11 views

Drag a table cell into a recieving UIView

I have a table, and I would like to pick two objects (table rows) to compare. I would like to do this by long press gesture, it creates a UIView copy of the cell and adds it to the superview, and I ...
0
votes
1answer
21 views

Custom uitableview cell not showing all text labels

I am trying to show an object from firebase in a custom cell. It has three text labels. When, I run my code it only shows one line of text per cell, instead of three, in the tableview. It only ...