Post

Replies

Boosts

Views

Activity

Keychain return different key when switching branches
Currently I found a wired issue on my application. The code basically unchanged for months. But suddenly when I switching to a different branch (a bit older), then back to the latest develop branch, the keychain returns a different encryption key. The keychain implementation remains the same for long time. Wondering if anyone can give some insights about it.
0
0
242
Oct ’23
UIAccessibilityScreenChangedNotification not working when using largest dynamic font
I met this problem recently. Basically, I want the voice-over back to the first element ( the bar item ) when the alert is dismissed. I had tried passing the bar item UIAlertAction *okAction = [UIAlertAction actionWithTitle: @"OK"                               style:UIAlertActionStyleCancel                              handler:^(UIAlertAction *action) {       dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{         UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, self.navigationItem.leftBarButtonItem);       });     }]; I also tried passing nil to UIAccessibilityScreenChangedNotification. I also tried setting accessibility elements in this controller or in the view in the controller. But none of the above works. When I tested it on iPhone Xr (iOS 15), there was no problem. But it's not working on iPhone 8 Plus (iOS 14). The issue with iPhone 8 Plus (iOS 14) is that the voice-over just randomly focuses on some element on the view. I was searching in docs, forums and websites but could not really find any help. Maybe someone has made the same experience and could share the solution with me. Thank you in advance!
1
0
766
Mar ’22
Having Layout issue using WKWebView inside UICollectionViewCompositionalLayout
I had built a UICollectionViewCompositionalLayout with a list configuration (estimated height for cell). One of my cells contains a WKWebview. So I would like a single cell layout change after WKWebView finished loading. I got the web view content height and set height constraint on web view. I expected the web view cell will update layout but it's not working. It is always using the estimated height. I had tried collectionViewLayout.invalidateLayout() But it brings performance issue when the collection view contains multiple web view cells. Does anyone know how to make the Auto Layout work?
0
0
473
Nov ’20