Skip to main content
-5 votes
1 answer
93 views

Is Apple's iOS documentation incorrect about previously registered class with the same reuse identifier being replaced with the new cellClass? [closed]

Apple's documentation says that: If you previously registered a class or nib file with the same reuse identifier, the class you specify in the cellClass parameter replaces the old entry. You may ...
sudoExclamationExclamation's user avatar
-1 votes
0 answers
68 views

How to create a more general way of getting all properties of a struct and setting them?

I have a variety of types of cells to display in my UITableView. I generate the reuseIdentifier for the cells based upon whether properties like title, body, metadata, favicon etc are true or false. ...
sudoExclamationExclamation's user avatar
-1 votes
0 answers
43 views

UITableView layout issue with large titles in UINavigationController – cell content offset or “bubble” appears under nav bar

I'm building a fully programmatic iOS app using UIKit (no storyboard). I have a UITableView embedded in a UIViewController, which is itself inside a UINavigationController. When I use .insetGrouped ...
CalebGates's user avatar
1 vote
0 answers
49 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 ...
Jack tileman's user avatar
0 votes
0 answers
31 views

Jump when animating SwiftUI view in UITableView cell with matchedGeometryEffect

I created the following MRE to demonstrate how a SwiftUI view with matchedGeometryEffect in UITableView cell causes visual jump during animation despite height updates. Initially, the cell would not ...
fingia's user avatar
  • 647
0 votes
2 answers
57 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. ...
Erzie's user avatar
  • 1
0 votes
2 answers
59 views

Unable to reset user default text within a set cell:

This is my code: class WeatherFeatures: UIViewController, UITextViewDelegate, WeatherManagerDelegate { let date1ForTableView = UserDefaults.standard let low1ForTableView = UserDefaults....
Train Lover's user avatar
0 votes
2 answers
38 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 ...
Train Lover's user avatar
-1 votes
1 answer
69 views

How to prevent UITableview cells from repeating the view inside it?

I have a table view which shows an array of signature views with guest details. When the cells are scrolled the signature from cell 1 is repeated in cell 6 and 2 in cell 7 and so on. (table view ...
vladislav.samsotech's user avatar
0 votes
0 answers
35 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 ...
Hakan Or's user avatar
0 votes
1 answer
33 views

Large title doesn't animate properly for TableViewController embedded in SegmentedControl

I have two tableviews that I'm switching back and forth with a SegmentedControl button by adjusting the alpha value of the TableViewControllers (see image 3). I'm perfectly able to switch between them....
user29283103's user avatar
-1 votes
1 answer
32 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 ...
Train Lover's user avatar
-3 votes
2 answers
65 views

how to set the size of an imageView inside table view cell

I set the imageView property on a tableView cell. I want to change the width and height of the image. How can I do so without using a custom cell? Here's my code: func tableView(_ tableView: ...
Chris Hansen's user avatar
  • 8,707
0 votes
0 answers
20 views

table head view not showing the right header [duplicate]

I have the following code private func addTableHeaderView() { let scoreView = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 150)) let scoreLabel = ...
Chris Hansen's user avatar
  • 8,707
0 votes
0 answers
98 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 ...
David Goncalves's user avatar

15 30 50 per page
1
2 3 4 5
4292