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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

UITableViewController tableview cells showing only while debug

Tableview cells are visible while app is in debug but when tried to terminate app and than try to reopen the app, cells are not visible. Approach(Which i used in my app): lazy var ...
Om Sanatan's user avatar
0 votes
0 answers
21 views

How do I get the current visible page using tableview index path?

Inside my tableview I want to get the current page that's being displayed inside a paginated list. Inside will display I'm able to get the current index path at a given row: func tableView(_ ...
Rush Benazir's user avatar
0 votes
0 answers
21 views

Reuse a tableview cell with CALayer

I have a tableview cell with a reuse-identifier set in storyboard. After checking some conditions I want to draw different things on the contentView of the cell. My problem is when the tableview re-...
Chris's user avatar
  • 322
0 votes
0 answers
12 views

why UITableView didSelectRowAt is 2 finger tap in modal?

when push ViewController navigationController?.pushViewController( ViewController(), animated: true ) it working didSelectRowAt fine 1 finger tap. but, when modal present ViewController ...
user16114557's user avatar
0 votes
0 answers
22 views

iOS on Silicon Macs – type of M-chip matters where it shouldn't

As a developer with more than a dozen iOS apps on the App Store (going back to 2011), I'm faced with a weird problem. When testing compatibily of my apps with Apple Silicon Macs, I noticed that ...
Willy R. Kunz's user avatar
1 vote
1 answer
47 views

UILabel in self-sizing UITableView Cell calculate height randomly

I have an issue with the self-sizing cell in UITableView in Swift, iOS 15. I want to create a cell like here: And it works fine when the view renders 80% of the cells. But sometimes I have something ...
lovemyreves's user avatar
1 vote
1 answer
61 views

UITableViewCell programmatical constrain issue

I I am creating UITableViewCell using programmatical constrains. The call has a cardView and a button. The cardView alone works fine. But once I add UIButton to there then I can see the error on the ...
Youmate's user avatar
  • 45
0 votes
2 answers
69 views

How to allow a CLICK, through a UITableView, to buttons behind?

Imagine a large table view that's mostly transparent, with some elements here and there. (Perhaps there's a large gap between cells, or, picture the cells being mainly transparent with only a couple ...
Fattie's user avatar
  • 20.9k
-1 votes
1 answer
25 views

Images flicker when table cell updated

In an iOS app, I have a table (UITableView) and within the table are cells that contain both an image and some text. At times, I need to update the text in a cell without changing the image. These ...
Flarosa's user avatar
  • 1,347
0 votes
1 answer
63 views

How to Pause the video when scrolling and Play a video when cell is visible on the screen Swift

I have a table view cell for vertical listing and have added a collection view in a horizontal playlist. I want to implement video playback similar to the YouTube app. Specifically, I aim to have the ...
Sham Dhiman's user avatar
  • 1,396
0 votes
1 answer
23 views

Replacement of UITableViewCell.imageView.alpha on iOS14

UITableViewCell.imageView is deprecated on iOS14. I checked UIListContentConfiguration's properties but couldn't fine a replacement for cell.imageView.alpha. What should I do? cell.imageView.alpha = ...
Huong Tran's user avatar
0 votes
0 answers
35 views

Thread 1: EXC_BREAKPOINT (code=1, subcode=0x105757d44) when set image

i tried to set an image from Firebase to ImageView using SDWebImage, i get the url of firebase, but when i try to set the image i get the error in DispatchQueue. I download the url and get the url of ...
Marcial's user avatar
  • 17
0 votes
0 answers
42 views

UIRefreshControl Triggers Multiple Callbacks on Diagonal UITableView Slide

I am encountering an issue where the event callback for UIRefreshControl is triggered multiple times when the UITableView is slid diagonally (top-left to bottom-right or vice versa). This behavior is ...
Rakuyo's user avatar
  • 420
0 votes
2 answers
52 views

Set selected state for UITableViewCell

I am working on my app, when clicking on 1 cell, its background should turn to blue and if clicking on other cell, the previous cell will reset its background color. This is my setSelected func ...
Alex171's user avatar
  • 37
0 votes
1 answer
41 views

UITableViewCell self sizing mess up

I am trying to make my UITableViewCell something like this: I decide to add an UIView to contain my text so that I can make the border. This is my .xib config My ViewController's TableView setup ...
Alex171's user avatar
  • 37
0 votes
0 answers
37 views

TableView Cell doesn't occupy full TableView width

I have this tableView in my code which I've set to be have the same leading and trailing as the view which is in it. I can confirm through coloring the background that is working. Next I created a ...
Gabriel Santos de Souza's user avatar
1 vote
2 answers
61 views

How can I set dynamic height of textview inside of stackview and tableviewcell?

I'm working on to-do app but I don't know what to do. I already did every single solution of it. (isScrollEnabled = false, .sizetofit(), translaste~ =true ...) How can I set dynamic height of textview ...
피우리's user avatar
0 votes
1 answer
30 views

Combining Plain and Inset Grouped Style Cells in a Single UITableView

I have a UITableView in my Swift-based UIKit app with a plain style, single section, and one cell type with a variable number of rows. I want to add another cell with the inset grouped style, but it ...
Victor Lobe's user avatar
0 votes
1 answer
28 views

How to get value from TextFields and append that value in DataModel in TableViewCell in Swift?

I have a TableView containing an Array of currencies. The array can have multiple elements, and TableView cell contains a TextField. Users may or may not add prices for all the currencies. I have ...
SwiftNewbie's user avatar
-1 votes
1 answer
36 views

How to display a TableView and another view through one ViewController?

I'm learning how to develop in Swift currently. I'd like to be able to replicate the functionality displayed in the Apple Music UI screenshot below. At a high level, I'd like a table view to select ...
pjohn1203's user avatar
0 votes
0 answers
34 views

How to control the width of UITableView tableHeaderView?

I set the width of tableHeaderView's frame to 0, and the height is 60. But I do not know why the header width will match the table. Help!! override func viewDidLoad() { super.viewDidLoad() ...
Kerwin Qiu's user avatar
-1 votes
1 answer
54 views

Custom UITableViewCell, UISlider subview unexpected sizing behavior

I have a UISlider in a custom UITableViewCell. When I look at the size of the slider in awakeFromNib the .frame property shows the size of the slider as it was set in the storyboard, not the final ...
psb's user avatar
  • 107
0 votes
2 answers
33 views

When pushing a new view controller to my navigation controller, I get returned the the same view controller I tapped from instead of the new one

I have a UIViewController that has a UITableView added as a subview. When I tap on a cell to return a new UIViewController (detail view controller, empty aside from background color) I get returned ...
ilmfeemster's user avatar
0 votes
0 answers
20 views

TableViewCell editing symbols – can I change color? [duplicate]

I have a TableView with cells, for which I've enabled "delete" editing and "move" editing. For deleting I'm using: override func setEditing(_ editing: Bool, animated: Bool) and ...
psb's user avatar
  • 107
0 votes
0 answers
35 views

My tableView Header is not getting stick on top while scrolling, I'm adding a scrollView too at top of tableView

This is my code private let parentScrollView = UIScrollView() private let scrollViewContentView = UIView() private let tableView = UITableView(frame: CGRect.zero, style: .plain) // MARK: Setting ...
Rohan Dalmotra's user avatar
0 votes
0 answers
14 views

Material UI table's column width not changing as desired

Whenever I try giving width to the column in header row, the header shifts to next row. Like first they are in single row. and when I give width, the column shifts to next row along with other columns ...
Bibek Bhattarai's user avatar
0 votes
1 answer
33 views

How to set a fixed size UIImage in UIListContentConfiguration?

I want a fixed size image in cell, here is my code in cell: var content = defaultContentConfiguration() content.image = img content.imageProperties.reservedLayoutSize = CGSize(width: 80, height: 80) ...
yxk's user avatar
  • 57
0 votes
0 answers
73 views

Format JSON data to display in tableview with section in Swift iOS

[ { "Date": "2023-10-12 15: 50: 45+0000", "Text": "Description", "Title": "Recommendation" }, { "Date": &...
user22733877's user avatar
0 votes
1 answer
37 views

Passing a variable into custom UITableViewHeaderFooterView

There's a UIViewController containing UITableView. class ProfileViewController: UIViewController { private lazy var profileView: ProfileHeaderView = { let profileView = ProfileHeaderView()...
Philipp's user avatar
  • 313
0 votes
1 answer
75 views

Facing issue with indexPathsForVisibleRows in cellForRowAt

I am displaying images from url in a UITableView and using SDWebImage for caching and it is working as expected. The only issue i am facing now is while downloading the image while scrolling the ...
Madhu's user avatar
  • 439
0 votes
1 answer
38 views

How to get an array displayed on UITableView of dates as strings converted to dates?

I have a custom cell made that shows some important details of strings retrieved from Realtime Database (Firebase). This is all working well with no issues. My problem is that I need to get the dates ...
Miguel Carvalho's user avatar
0 votes
1 answer
28 views

Disable swipe to delete TableView row?

I have a UITableView and I'm implementing swipe to delete functionality using the following function: func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, ...
psb's user avatar
  • 107
0 votes
1 answer
38 views

Updating information in a TableView using a Timer

I have a UITableView that displays a list of cities and the current time in those cities, which I update using a Timer. I am starting initializing the time like this: clockTimer = Timer.scheduledTimer(...
psb's user avatar
  • 107
0 votes
1 answer
19 views

TableView with dynmic cells inside a TableViewCell with dynamic height

I want to implement subTableView with dynamic height inside the UITableViewCell, where as the subTableView has cells with dynamic UITableViewCell. Please share your thoughts on this if anybody have ...
durgesh pandey's user avatar
-1 votes
1 answer
20 views

Pull down gesture on tableview with loading indicator

When you pull down on a tableview, a white space appears above the tableview. The ask is to have the tableview stay in the pulled down state, and a spinner appear in this white space while the data is ...
Rik's user avatar
  • 1,894
0 votes
0 answers
16 views

Confine the movement of a UIDragItem within a specified set of sections in UITableview drag & drop interaction

I have used UITableView's drag and drop interaction to reorder a UITableView. I need to prevent the user from dragging the cell outside of a particular section. If the user drags the finger outside ...
Sundara Aadithyan's user avatar
0 votes
1 answer
30 views

UITableViewCell Label's content missing

I am setting a tableView but when running the app, the label's content is not stable, sometimes it shows full content, sometimes it doesn't. Looking for advise. I attached the images for .xib setup ...
Alex171's user avatar
  • 37
0 votes
0 answers
16 views

Swipe gesture on section header intercepted by trailingSwipeActionsConfigurationForRowAtIndexPath of cells underneath

I add a subview to the section header in viewForHeaderInSection(). Then attach a swipe left gesture to this subview. In this subview, I add a few buttons so when swipe they will show up. I do this ...
Rao's user avatar
  • 59
0 votes
0 answers
35 views

A string written twice on real iOS device, but correct on simulator

The string is 'Match Points:' on any real iOS device: on simulator iPhone 14 Pro: The chip is appeared when user selected and enabled search filter. There is the code on didSelectItemAt ...
Fathya's user avatar
  • 23
1 vote
0 answers
26 views

Switch to Previous & Next cell on IQKeyboard manager up and down button

I'm using IQKeyboard Manager in my project, In my project I have one screen with a similar design to an Excel sheet. Check Image Let me explain you in details so it's easy to understand problem. App ...
Krunal Nagvadia's user avatar
0 votes
0 answers
25 views

How do I customize the color of the cell reordering hamburger handle in a UITableView?

I have a table view and I enabled editing on the table. A handle that I can drag to reorder cells appeared at the end of the cell but it's barely visible due to the background colors I set for my ...
Belal Hmeidat's user avatar
0 votes
1 answer
53 views

UITableViewCell image from url is wrong at first load

Situation There's something wrong with setting url image to UITableViewCell. I created CancelableImageView which is custom UIImageView to cancel image downloading and setting task when new image is ...
Dan Choi's user avatar
0 votes
1 answer
20 views

Handling a tap of UIImage inside of UITableViewHeaderFooterView

I have a custom UITableViewHeaderFooterView which is called ProfileHeaderView. It does contain UIImageView called userImage. How can I access this userImage for adding a tap gesture. Here's the piece ...
Philipp's user avatar
  • 313
-1 votes
2 answers
65 views

How to Disable UITableView Section Header scrolling in ios Swift

When scroll the tableview table section header should not scroll from his place only table cells should scrollable. I selected UITableView style plain and disabled Bounce on scroll. But, Still it is ...
user avatar
-1 votes
1 answer
26 views

UITableView - header height - entire screen

I have UITableView inside UITableViewController. I have set UITableView header and I want to set its height to be entire screen, so the first cell of table is outside the screen. I have tried inside ...
Martin Perry's user avatar
  • 9,386
0 votes
0 answers
46 views

I want to remove the red button with the minus and make it so that the delete button shows up on swiping left now swiping isn't working

This is my code, I want to remove the red button with the minus and make it so that the delete button shows up on swiping left, now swiping isn't working. I checked UITableViewCellEditingStyleDelete ...
akshayTejus's user avatar
0 votes
0 answers
51 views

How can I reorder rows in UITableView that conforms to UITableViewDiffableDataSource?

To display list of items, I'm using UITableView which conforms to UITableViewDiffableDataSource. I want to reorder table rows. For that I've used tableView(_:canMoveRowAt:) and tableView(_:moveRowAt:...
Dayanithi Natarajan's user avatar
0 votes
1 answer
60 views

Using UITableViewDiffableDatasource in UITableView, Add or DeleteCell -> Warning Cell Constraints

When Cell initializer called function private func configureUI() { [dateLabel, previewLabel].forEach { contentsStackView.addArrangedSubview($0) } [...
lee hyungmin's user avatar
0 votes
0 answers
35 views

Custom view above table view cell with UIContextMenu

I am trying to implement something like this: I have already added contextual menu below my tableView cell. Now I want to add reaction view above the cell. I am unable to find any solution for this. ...
Nimra Jamil's user avatar

1
2 3 4 5
1289