Post

Replies

Boosts

Views

Activity

Dynamic Island appears and then disappears
Trigger an alarm on the iPhone 14 Pro Max so that the time is displayed on the dynamic island at the top. And when you perform a specific action in the currently sold app, the time or icon displayed on the dynamic island appears and disappears. Is there anything special I need to do in my app to just keep the current dynamic island icon or time display? Other apps seem to keep the time or icon displayed on the dynamic island. Add We confirmed that if we make the bottom home indicator disappear automatically with setNeedsUpdateOfHomeIndicatorAutoHidden, the dynamic island also disappears. Is there a way to setNeedsUpdateOfHomeIndicatorAutoHidden to show the current dynamic island even though the home bar disappears? Some users believe that the app is malfunctioning because it repeats that the content of the dynamic island is displayed when you touch the app and disappears when you don't touch it.
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
2.2k
Oct ’22
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.
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.
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
1.4k
Oct ’22
Question: How to stop a sound that has lost control (AVSpeechSynthesizer)
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.)
2
0
975
Nov ’22
In-App Purchase Family Sharing Issue
The app sells non-consumable in-app purchases. I also checked to enable family sharing. However, there are frequent cases where users share purchases using the family sharing function and fail when attempting to purchase or restore from a device of the shared account. Or, if a user who received the sharing makes a purchase, it will not be processed as shared payment information, but will be paid with the payment registered with the Apple ID of the current device. I used StoreKit2 and use Transaction.currentEntitlements to get payment info after purchase or restore. However, non-consumable in-app purchase information that has been shared with the family does not arrive normally. When I looked at the Storekit2 documentation, I know that there is nothing special handled or added in the API or code related to family sharing. If I'm wrong on this part or if you know a good solution to this non-consumable payment - family sharing, please advise.
2
2
893
Jun ’23
Apple Watch SE2 Xcode Debugging Issues
I currently own an Apple Watch SE2 device. However, when I try to debug from the watch to the actual device, the connection loss issue occurs all too often. Once the connection is lost, it continues to try to connect in the Disconnected list on the Xcode "Devices and Simulators" screen and is in a loading state. Very often, even when the connection is established and you are trying to start debugging, it drops out. Xcode cannot debug properly on the actual device. I later found out that the Apple Watch SE2 does not support 5.0 Hz Wi-Fi, only 2.5 Hz. I think that might be the cause. Is this phenomenon less likely to occur if you debug on an actual device such as a regular Apple Watch 7/8/9 or Ultra model? In fact, if debugging is difficult with the Apple Watch SE model, I am wondering whether I should purchase an additional Apple Watch. Or is there another way to improve this issue? It would be nice if the Apple Watch could be debugged by connecting it to a Mac with an actual cable like the iPhone. I am wondering if there is a way to disable and enable network debugging in Xcode. In the past, debugging the watch using only Bluetooth with the iPhone in Xcode seemed to be more stable. Except for the Watch, the iPad doesn't have any major issues with Wi-Fi debugging on the iPhone.
2
1
1.1k
Feb ’25
Questions about isExcludedFromBackup option and device migration
Questions about isExcludedFromBackup option and device migration I posted a similar question a year ago, but I still haven't found a solution that I like, so I'm leaving this question. If anyone knows how, please let me know. In our app, we set the isExcludedFromBackup option to true so that files currently in the Documents path are not backed up to iCloud. In the current situation, I am just curious as to whether the files of our app can be backed up in the two situations below. (with isExcludedFromBackup option set to true ) Migrate iPhone to new iPhone Backup and restore the entire device to iTunes If you set the isExcludedFromBackup option to true in the file, iCloud backup will not be possible, and the app's internal files will not be copied even in the two situations mentioned above. Is there an option or method in the app's internal code to prevent automatic backup only to iCloud and allow files to be copied or synchronized in the above two situations?
2
0
869
Apr ’24
Black screen when running the app on the iPad app
This is the app we are currently selling. If you follow the steps below, you may experience a black screen phenomenon. Run the app and go to the home screen. Turn off the screen of the device and do not use it for a long time. Turn on the device's screen and launch the app from the home screen. Randomly, the entire app screen is black and nothing works. If you completely close the app and run it again, it will run normally. It has been reported to us since iOS 15. And in iOS 15 and iOS 14.8, a user sent us an email about the same phenomenon. This only happens on the iPad, not the iPhone. Supports iPad multitasking UIApplicationSupportsMultipleScenes is not supported. Can anyone advise us on the cause or solution of this symptom?
1
0
1.1k
Oct ’21
How to get the Mac OS version ?
My app is for iOS (not a Mac app). It can be installed and run on M1 Mac. ProcessInfo().isiOSAppOnMac returns True . In this case, is there any way to get the OS version information of the Mac device where this app is currently installed? All APIs that get the current version information return the iOS version. For example, Mac 12.0 returns iOS 15. Mac 11.0 and Mac 12.0 both return to iOS 15. And some APIs started in iOS 15 crash on Mac 11.0. So we currently want to know how we can get the Mac OS version information of the actual device in the above case. (Additionally, not Mac Catalyst.)
1
2
1.2k
Oct ’21
How to communicate with other apps in the standalone Apple Watch app
I haven't developed an Apple Watch app yet. I have an existing app for sale. Users of that app sometimes send me requests for functions using Apple Watch in the app by email. Considering future maintenance, I would like to sell the Apple Watch app as a paid app. However, I know that watch app support cannot be turned on/off by in-app purchases in existing apps. Is there any way for the standalone Apple Watch app to communicate with my existing paid/free apps?
1
0
703
Feb ’22
Question about backup of isExcludedFromBackup
I have a few questions about files that are allowed to be backed up by setting isExcludedFromBackup to false . Is it correct that the files allowed to be backed up are backed up by iCloud and iTunes sync? Are the files allowed for backup always/periodically backed up to iCloud? Or does it only sync when the user manually backs up the device? If the files allowed for backup are regularly backed up to iCloud, will there be a capacity issue? (User's iCloud capacity) If there is issue 3 above, is it a good solution to add an option to the app so that users can turn it on/off?
1
0
1k
Aug ’22
Can you check with @available if your iOS app is running on Mac?
I don't want the function to be included if the iOS app is running on a Mac. (Designed for iPad) For example the sample code below @available(iOS 13.4, *) func keyPressed(_ key: UIKey) { .. } The keyPressed function is included when running in iOS or iPadOS. I would like to know if there is a way to prevent the keyPressed function from being included at launch time, even when running an iOS app as "Designed for iPad" on M1/M2 devices. "targetEnvironment(macCatalyst)" When this is called, false is unconditionally displayed, so the distinction cannot be made. #if ProcessInfo().isiOSAppOnMac func keyPressed(_ key: UIKey) { .. } #endif If you use the code above, ProcessInfo cannot be executed in RunTime, so false is output unconditionally. So far I'm looking for a possible way, but there doesn't seem to be any possible way. If anyone has solved this problem, please reply.
1
0
722
Sep ’22
Can you tell me the cause of the crash that occurs when AVSpeechSynthesizer is stopped?
We are providing the ability to speak text in our app using AVSpeechSynthesizer . Stop the AVSpeechSynthesizer at random I get a crash like the screenshot below. What causes this error to occur? It happens occasionally during testing, but it doesn't go away even if I fix it in various ways. Is this a bug in iOS or is there something I need to fix or add? If a crash occurs, the message below is also displayed in the log window during debugging. [AXTTSCommon] _BeginSpeaking: speech cancelled error: Error Domain=TTSErrorDomain Code=-4005 "(null)" [AXTTSCommon] _BeginSpeaking: couldn't begin playback TTS Create Code let utterance = AVSpeechUtterance(string: playText) if Singletone.sharedInstance().ttsIdentifier != nil { utterance.voice = AVSpeechSynthesisVoice(identifier: Singletone.sharedInstance().ttsIdentifier!) } else {         utterance.voice = AVSpeechSynthesisVoice(language: "en-US") }          utterance.rate = 0.4 utterance.pitchMultiplier = 1.0 utterance.preUtteranceDelay = -1.0 utterance.postUtteranceDelay =  -1.0 utterance.volume = 1.0          if self.synthesizer == nil { self.synthesizer = AVSpeechSynthesizer() self.synthesizer!.delegate = self }          self.synthesizer!.speak(utterance) TTS Stop Code self.synthesizer!.stopSpeaking(at: .immediate) self.synthesizer!.delegate = nil self.synthesizer = nil
1
0
1.2k
Oct ’22
Has anyone solved the UITableView text persistence or overlapping issue in iOS 16.1 iPhone 14 Pro and 14 Pro Max?
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.
1
0
1.3k
Oct ’22
Is there an API that can check whether an app has been purchased in a paid app?
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.
1
0
693
Apr ’23