64,310 questions
0
votes
0
answers
79
views
iOS 26 UITableView animation for reloadRows is noticeably slower than previous versions
I do below in my app:
myTableView.reloadRows(at: indexPathsToReload, with: .fade)
The reload basically expands/collapses the row (a UILabel's text is expanded or collapsed) causing the height to ...
2
votes
1
answer
144
views
UITableView inside UITableViewCell causes scroll jump when updating height dynamically [closed]
I have a UIKit app where chat messages are displayed in a UITableView. One of the message types is a cell that contains another UITableView (a nested table view).
The nested table view needs to size ...
0
votes
2
answers
66
views
Table view lags while scrolling
I have a UITableView with cells that display chat messages. Some messages contain code blocks which I render inside the cell by dynamically creating and adding custom CodeBlockView instances to a ...
0
votes
1
answer
44
views
Receiving "Attempt to present X on Y whose view is not in the window hierarchy" when trying to present a popover from didSelectRowAt
I'm a bit of a newbie and I may be out of my depth here, but I am running into an issue that I can't seem to crack.
I have a prototype tableview cell in which I am using an array to show an image (...
1
vote
1
answer
76
views
UILabelView not displaying the entire picture swift 5 NSTextAttachment
We are trying to display an image in a UILabel view using Swift 5. Here is the code that we have.
Unfortunately, instead of the entire image displayed at 75% of width of screen and 75% height of ...
0
votes
2
answers
78
views
UITableView with UICollectionView cell: How to determine cell height at initialization?
I have a UITableViewController with UITableViewCells containing a UICollectionViewController.
Each UICollectionViewController, also contains a cell containing a UIViewController of varying size.
...
0
votes
2
answers
64
views
Struggling to implement specific variables into a table view cell because of user default values missing
I have been working to make a weather feature in my app, which takes API data from Visual Crossing.
The issue is that the data is extracted into my app in a seperate function then that which sets my ...
0
votes
0
answers
48
views
How to Detect Scroll Completion Before Calculating Frame?
How to Detect Scroll Completion Before Calculating Frame in Swift (iOS)?
I am working on an iOS application where I have a screen containing both a UICollectionView and a UITableView. The ...
-1
votes
1
answer
40
views
Trying to have multiple array items appended to a user-defaults property when in a UITableViewCell?
I have been trying to create a "saved features" tab for my app. I embedded a button into my table view cell (which had a star icon - FavouriteStatusButton). When selected it would append the ...
0
votes
0
answers
103
views
Large Title collapsing at launch when UITableView not empty
I have a UITableViewController with a UINavigationBar with the property :
navigationBar.prefersLargeTitles = true
navigationItem.largeTitleDisplayMode = .automatic
I add in the UITableViewController ...
-1
votes
1
answer
54
views
Customised UITableViewHeaderFooterView registering causes crash
Created a custom UITableViewHeaderFooterView:
class TableSectionHeader: UITableViewHeaderFooterView {
let title = UILabel()
override init(reuseIdentifier: String?) {
super.init(reuseIdentifier: ...
0
votes
0
answers
49
views
Keyboard for Input in TableView
Currently my spreadsheet has cells for data entry and if they are too low the keyboard overlaps them. I'm trying to make the table slide to the top when the keyboard appears and the input field ...
0
votes
2
answers
50
views
How to Create a Dynamic Height Table Header with Title and Description in UITableView?
I have a UITableView and I want to display a dynamic header at the top of the table.
I am trying to do this using tableHeaderView. The header contains a titleLabel and a descriptionLabel arranged ...
0
votes
1
answer
132
views
Swift/UIKIt: How to make a gradient background take up the entire length of the UITableView?
I have an app with a UITableView. We're gradually converting to SwiftUI, so the UITableView is basically a collection of SwiftUI views. I was able to get the background to appear as a gradient using ...
0
votes
1
answer
51
views
Error when trying to use generic UITableViewCell
I'm trying to make a reusable UITableView. I will pass in generics for item and UITableViewCell. However am having an error when I try to cast my cell to C and am not sure how else to fix this.
...
1
vote
1
answer
225
views
Problem with height calculation automatically to UICollectionView inside a UITableViewCell
Good?
I have a problem with the implementation of a UICollectionview intro a UITableViewCell, because the height calculation of this component does not work properly, even though using ...
0
votes
1
answer
53
views
Crash when scrolling a UITableView after applying mask to an image
I am applying a mask to an image in a custom table cell. The mask works correctly but as soon as I scroll the table I get a Fatal error: Unexpectedly found nil while unwrapping an Optional value on ...
0
votes
1
answer
42
views
Is is legal to change the position of the frame of the contentView in a UITableViewCell or should I use another container view?
I am making my own custom swipeable cells where user can swipe a cell to show options. Currently all my subviews are added to the contentView of the cell. And I have added my options to the ...
1
vote
1
answer
66
views
UISlider triggers reorder on Silicon Mac's UITableView
When I run my iOS app on Apple Silicon Mac (ARM) in "Designed for iPad" mode, I'm not able to use a UISlider contained in a reorderable tableview cell. Dragging the slider triggers a reorder ...
0
votes
0
answers
20
views
UITableView - insertingRows at index 0 breaks the animation if scrolled slightly down
InsertingRows fails animation if the user is slightly scrolled.
https://gist.github.com/patryk-sredzinski/cbbf77a35e31dea707e5349194a10828
Tap on Insert to add a row - observe how it nicely scrolls
...
1
vote
0
answers
43
views
Take a snapshot of UITextView inside UITableViewCell
I'm trying to take a snapshot of UITextView inside UITableViewCell.The code is as below.
class MyTableViewCell: UITableViewCell {
@IBOutlet weak var myTextView: UITextView!
func bind(){
...
0
votes
1
answer
76
views
Box like shadow in swiftUI
I have added a VStack, I am adding 3 elements like Top , middle and bottom and adding shadow respectively. Problem is I am getting 1px gap between the elements even after adding spacing as 0.
Top ...
-1
votes
1
answer
66
views
In Swift UIKit, how to add two button images inside a table cell?
I need two images buttons to be clickable inside a certain cell (not all cells), instead of the text. How can I do this? I have the cell extension, and the image "the_icon" exists (I can see ...
0
votes
1
answer
87
views
Change the background view of UITableViewCell when dragging during reorder
When the user is reordering their items and dragging on a cell, I want the cell to have a thin material as background. However, when the user isn't dragging any cells, the background would be clear to ...
0
votes
0
answers
42
views
UITableView + titleForHeaderInSection + estimatedSectionHeaderHeight = jittery scrolling after rotation
There is a UITableView with 100 sections with headerTitle and 1 cell in each.
Scroll down few cells
Rotate screen
Scroll up – scrolling is jittery and titleForHeaderInSection causes it.
Any idea how ...