UITableView scrollToRow When switching to the next or previous page, the contents of the previous page do not disappear immediately, but remain as an afterimage and overlap for a while.
Use UITableView's scrollToRow to switch to the previous or next page.
There were no strange symptoms until iOS 15.
However, starting with iOS 16, there is a strange phenomenon.
Make scrollToRow work with no animation. (code below)
tableView!.scrollToRow(at: IndexPath(row: self.pIndex, section: 0), at: .top, animated: false)
When I keep switching to the next or previous page, the content displayed on the next or previous page remains as an afterimage and disappears.
So, the contents of the page you moved briefly to and the contents of the previous page are overlapped.
And the contents of the previous page disappear.
Does anyone have a cause or solution for this issue?
This is especially the case with the iPhone 14 Pro or 14 Pro Max, but the same phenomenon occurs even if the promotional display function is disabled.
In info.plist, the CADisableMinimumFrameDurationOnPhone value is set to YES.
And when I switch pages with scrollToRow , it happens when I switch from the current page to the next or previous page.
But when I switch to a page that is a bit far from the current page, it doesn't seem to happen.
The same phenomenon does not occur in iPhone 8 and iPhone 12 Pro Max with iOS 16.0.3 installed, such as iPhone 14 Pro Max.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Has anyone solved the UITableView text persistence or overlapping issue in iOS 16.1 iPhone 14 Pro and 14 Pro Max?
If anyone has solved the problem by modifying the code, please reply.
I posted on the forum a while ago and forwarded the issue to Apple Feedback.
Link to the forum post: https://developer.apple.com/forums/thread/718401
(Sample code and video links are in the article above.)
However, it was confirmed today that iOS 16.1 did not improve on the iPhone 14 Pro Max.
After making the cell of UITableView display text with UITextView or UILabel
The text color is set to black and the background to white.
(The afterimage is displayed in black, so it must be reproduced with a white background.)
UITableView srollToRow Calls the next or previous Row in the current Row without any animation effects as shown in the code below.
tableView!.scrollToRow(at: IndexPath(row: self.pIndex, section: 0), at: .top, animated: false)
And the call to scrollToRow is UITapGestureRecognizer , which makes it scroll one page at a time when the user taps.
At this time, the cell height of UITableView is set to the total height of the device.
This will briefly display the text content that was just previously displayed in black. (Sometimes it is displayed a little longer.)
So the current page text and the previous page text overlap.
There is a phenomenon that the contents of the previous page disappear.
In a slightly animated effect, it feels like a transition to the next page, leaving an afterimage of the previous page content.
But I didn't add any animation effects in the motion.
This is definitely happening on the iPhone 14 Pro and 14 Pro Max.
We think it might be an iOS error.
I don't think it will be improved as iOS will be updated soon.
(No feedback from Apple as of today.)
So, if you have experienced the same problem and solved it through code, please help.
Even if it is improved with an OS update in the future, there are users who are currently uncomfortable, so if there is a way, I am thinking of including it in the app update.
We are adding a function to change the height and spacing of only certain characters (NewLine) using NSMutableAttributedString.
Set font size to 0 and lineSpacing to 0.
For characters other than specific characters, enter the font size and lineSpacing separately.
(e.g. font size = 28.0 / lineSpacing = 16.0)
When applied to UITextView , the space in that part is higher than the lineSpacing set for other lines.
(In other words, I set the font size and linespace to 0 for a blank line, but the height occurs in the blank line.)
I thought that by setting the font size and lineSpacing to 0, the line height would be 0.
But it doesn't appear that way.
Does anyone know of this issue?
If there is something I don't understand, please let me know, it will help me to solve it.
The iOS version is being developed in the 16.1 environment.
I'm struggling with a recent bug in iOS 16.
There are various errors and bugs
Currently struggling with AVSpeechSynthesizer.
AutoReleasePool crashes frequently.
I also posted a similar post on the forum before.
https://developer.apple.com/forums/tags/speech
There seems to be a lot of similar cases in the forum posts above.
When AVSpeechSynthesizer is stopped, it does not stop immediately, but continues to play to the end.
In that situation, even if you stop again, you lose control and cannot stop.
Is there any way to stop the currently playing sound at will when I lose control like this?
(I was also able to confirm that the error persisted without being fixed when I tested it on a device that just installed the 16.2 beta.)
I'm trying to get all of the text displayed on the screen in a WKWebView .
First of all, the text inside the html file to be loaded is broken.
So use evaluateJavaScript to call "document.body.textContent" or "document.body.innerText".
Doing so will return the broken text verbatim.
However, the content displayed on the webview screen is not broken and displayed normally.
I want to know how to get all normal text rendered on this webview screen.
How can I get the String transformed to fit the UIFont's table?
The characters (Unicode) included in the original String are all wrong.
This original String is intended to be displayed normally when displayed or rendered in a UITextView using a specific UIFont.
In other words, both the original String and UIFont files are not normal.
Even after applying it to UITextView or UILabel, the rendering is displayed as normal characters, but when I import it as a String variable as text and display it in the log, it is still abnormal original characters.
So, in the case of UITextView, even if the user makes a selection and then copies or searches, it does not work normally.
I want to get the rendered (converted) String of this original String through this specific UIFont.
Apple has two watch app cases below.
Watch App Only
Phone App + Watch App (uncheck supports running without ios app installation option)
I am trying to distribute it in the second situation above, "phone app + watch app".
We are currently developing/researching a watch app. So, I have a few questions.
First case:
Documents can only be viewed on the watch app.
You cannot view documents in the phone app, but it converts and transfers files from the phone app to the watch app.
You can view the file by opening it in the watch app.
Can a case like this pass the app review?
Second case:
In phone app + watch app, when both apps have the ability to view files
Is it possible to sell the phone app and the watch app separately for a fee?
In the Watch app, press the digital crown to go to the home screen, or the app enters the background state and tries to save the current data to iCloud.
However, in this case, you may not be able to save to iCloud.
In my opinion, the Watch app doesn't seem to be given any extra time to finish tasks once it enters the background.
Is there any way I can do a little bit of extra background work to get things done?
In the case of a background session, the system starts the app at an unspecified time after the app enters the background, so I decided that it was not particularly necessary in my case.
It would be nice to be able to finish the work within 30 minutes while entering the background state, but I can't find a suitable way.
Topic:
App & System Services
SubTopic:
General
Tags:
Watch Connectivity
WatchKit
watchOS
Apple Watch
In the news these days, there are many things that Apple may allow sideloading installation from iOS 17.
In that case, it might not be a problem to install only the ipa file of the paid app and install it on someone else's device.
Is Apple currently supporting an API that can check whether a paid app has been purchased?
(This is a paid app, not a subscription or in-app purchase.)
If there is such an API, please let me know.
Watch Standalone App The icon is not displayed in the Watch app on iPhone.
We are currently trying to get the Apple Watch Standalone app to be judged.
It has been rejected in the current review.
The cause is that after installing the app on the watch, the app icon is displayed as a blank image in the "Installed on Apple Watch" item of the "Watch" app, which is the default app of the iPhone.
The app icon installed on the watch cannot be displayed in the iPhone's default "Watch" app.
If anyone knows of a possible way, please let us know.
I've tried a lot of different ways now, but to no avail.
Even if I combined the iPhone + watch icon in Watch Assets and installed the watch app, it failed.
Even the Apple guidelines given by the reviewer have no relevant information at all.
AVSpeechSynthesizer delay issue, [AXTTSCommon] Invalid rule:
Play text using AVSpeechSynthesizer.
Sound comes out normally.
If you call speak(_ utterance: AVSpeechUtterance) to play text as speech
[AXTTSCommon] Invalid rule: The log is displayed and it is called two or three times and the sound comes out late.
It is judged that there are cases where delays of more than 1 second occur depending on the user, device, or situation, usually ranging from 0.6 seconds.
[AXTTSCommon] Invalid rule: There is no additional reasoning behind the log.
[AXTTSCommon] Invalid rule:
[AXTTSCommon] Invalid rule:
In this way, it is called a second time.
This issue occurs after iOS 16.0.
Is there any way to fix that issue?
or not
I would like to know if there is a way to reduce the delay at startup even if that log is displayed after the speak(_ utterance: AVSpeechUtterance) call.
macOS 14 Sonoma cifilter issue (Designed for iPad)
I just updated my M1 Mac to MacOS 14 Sonoma.
I ran the iOS/iPadOS app built in Xcode 15.0 on a Mac whose OS was updated using Testflight.
(My app is Designed for iPad and is set to run on macOS.)
When UIImage is processed using cifilter, the generated image may be grayed out.
The same code does not occur on iOS and iPadOS.
In other words, it does not occur on iPhone and iPad iOS/iPadOS 17.
Has anyone experienced a similar issue?
And I would like to know the solution ASAP.
I am distributing the app as Designed for iPad.
Every year, when Mac OS is updated, an issue arises.
So, I am considering not allowing Vision Pro to run the current iOS/iPadOS app.
How do I prevent my app's folders or files from being displayed or searched in the Files app?
Currently, the app is set to display internal files and folders in the "Files" app, Apple's default app.
Is there a way to turn this on and off within the app code so that our app's files or folders are not searched within the Files app?
All files and folders in the Documents path and their subfolders and files are eligible.
We are working on a screen that registers fonts using UIFontPickerViewController.
Sometimes when I run UIFontPickerViewController I just get a black screen.
Or, the font of the UI inside UIFontPickerViewController is broken and displayed as strange special characters.
When displayed as a special character, screen scrolling becomes slow and the font is not displayed in the list when scrolling down.
When this happens, the Xcode debug window shows “error received: connection invalidated.” This error message is displayed.
This happened to me often while developing UIFontPickerViewController .
Could you please advise how to resolve this issue?
Or, I hope Apple resolves the issue quickly and updates.
The development device where the issue occurs is iPhone SE3 iOS 17.4.
When PKCanvasView is first drawn, existing drawing objects disappear.
PKDrawing, which previously had drawings saved with PKCanvasView, was saved as separate data or file.
After that, while creating a new PKCanvasView, I loaded the saved PKDrawing and reflected it in the new PKCanvasView.
Below is the code.
canvasView!.drawing = draw!
Previously saved text or lines will be displayed normally.
However, when I draw with the pen for the first time (when I touch the screen with the pen), the old writing or lines disappear.
And after I leave a line or text, if I pan across the screen, the old text or line appears again.
If this phenomenon occurs and you touch the screen again with the fan, this phenomenon will no longer occur.
This phenomenon occurs the first time when a new PKCanvasView is declared and the previously saved PKDrawing is reflected.
Could you please help me with why this phenomenon occurs and how to improve it?