Since a recent iOS update somewhere between 16.2 and 16.4.1 a change was introduced that now leads to UICollectionViewController crashing in my app.
The crashes are due to the data source being changed without properly updating the ViewController. However the change is made when the UICollectionView is not displayed which used to be allowed but now causes a crash.
My scenario is this:
UINavigationController
UICollectionViewController
UIImageViewController
My data source is a list of images. When a CollectionView item is tapped the UIImageView will be pushed on top of the navigation stack to display this item. From there it is possible to delete the item which removes it from the data source of the CollectionViewController and leads to the crash. This used to be no problem as the CollectionView is lower on the navigation stack and not displayed at the time the alteration occurs. But this has changed in a recent iOS update.
This issue occurs in iOS 16.4.1 and MacOS 13.3.1 (Apple Silicon).
Here is the stack:
Invalid batch updates detected: the number of sections and/or items returned by the data source before and/or after performing the batch updates are inconsistent with the updates.
Data source before updates = { 1 section with item counts: [27386] }
Data source after updates = { 1 section with item counts: [27385] }
Updates = [
Delete item (0 - 27384),
Insert item (0 - 27384)
]
Post
Replies
Boosts
Views
Activity
Hi,
I have this pesky issue where whenever I open an fbx or usdc file in Reality Converter it fails to load the image texture due to lack of permissions. I then have to click on each individual one to open a file dialog and manually open it. This gets boring very quickly.
I have granted full disk access to Reality Converter in my Privacy & Security Preferences but this made no difference.
Does anyone know how to get around this issue?
Hi!
I’m trying to set up a launch screen image for my app. My goal is simple: I want my app icon to be displayed in the centre of the screen with a background colour. I do not want to use storyboards in my app.
I realise that this is a very simple and common task, but I am struggling to find proper documentation on it.
I am vaguely following the info.plist method from this page: https://developer.apple.com/documentation/xcode/specifying-your-apps-launch-screen/
I’m specifying my Image Name and Background Color. And everything plugs in and works except that the scale of the image is very unpredictable. I was hoping to make this work for all kinds of devices and screen sizes by simply using a transparent square image with my icon in the middle. I would have expected the image edges to be snapped to the screen borders and the image to be scaled uniformly to fit the screen. But no matter what resolution I try, 4k, 2k, 1k, the image gets scaled without any recognisable logic behind it.
Does anybody know what image size is expected and if there is any way of achieving my goal?