ios12

Cordova IOS 12 Wkwebview body scroll issue

删除回忆录丶 提交于 2021-02-18 16:57:53
问题 I have a Cordova app (PGB cli-6.5.0, Cordova iOS 4.3.1, wkwebview) that is exhibiting strange behavior on iOS 12.1. The code had been working for years before iOS 12. The app allows a variety of numeric input styles implemented in the app but also includes the standard keyboard. In iOS 12 the input popup div or standard keyboard comes up and appears as normal, but a touch does not register in the correct place. They are offset vertically (remember everything is normal visually). This is true

CGImage Masking stopped working on iOS 12

走远了吗. 提交于 2021-02-09 15:41:20
问题 I've got a method for masking a B&W image by cutting out (i.e. making transparent) any pixels that are above or below a certain brightness. The result would be the same B&W image, but with everything above 70% or below 25% brightness (or whatever you choose) changed to transparent. It was working perfectly on iOS 11, but it broke on iOS 12. It now returns the original, solid image with no modifications every time. -(UIImage*)imageWithLumaMaskFromDark:(CGFloat)lumaFloor toLight:(CGFloat

CGImage Masking stopped working on iOS 12

独自空忆成欢 提交于 2021-02-09 15:41:04
问题 I've got a method for masking a B&W image by cutting out (i.e. making transparent) any pixels that are above or below a certain brightness. The result would be the same B&W image, but with everything above 70% or below 25% brightness (or whatever you choose) changed to transparent. It was working perfectly on iOS 11, but it broke on iOS 12. It now returns the original, solid image with no modifications every time. -(UIImage*)imageWithLumaMaskFromDark:(CGFloat)lumaFloor toLight:(CGFloat

CGImage Masking stopped working on iOS 12

只谈情不闲聊 提交于 2021-02-09 15:40:32
问题 I've got a method for masking a B&W image by cutting out (i.e. making transparent) any pixels that are above or below a certain brightness. The result would be the same B&W image, but with everything above 70% or below 25% brightness (or whatever you choose) changed to transparent. It was working perfectly on iOS 11, but it broke on iOS 12. It now returns the original, solid image with no modifications every time. -(UIImage*)imageWithLumaMaskFromDark:(CGFloat)lumaFloor toLight:(CGFloat

How to properly add an UICollectionView inside UITableViewCell using IOS 12

点点圈 提交于 2021-02-06 14:01:34
问题 For some reasons I cannot properly display some items from a collection inside an tableview cell when using Xcode 10 beta. I tried all I know for the last 4 days. I made a small project sample to see what my issue is. Full code is here if someone wants to run it locally: https://github.com/adrianstanciu24/CollectionViewInsideUITableViewCell I first add an table view with 2 different resizable cells, first cell has the collection view and a label: class ViewController: UIViewController,

How to properly add an UICollectionView inside UITableViewCell using IOS 12

谁都会走 提交于 2021-02-06 13:58:22
问题 For some reasons I cannot properly display some items from a collection inside an tableview cell when using Xcode 10 beta. I tried all I know for the last 4 days. I made a small project sample to see what my issue is. Full code is here if someone wants to run it locally: https://github.com/adrianstanciu24/CollectionViewInsideUITableViewCell I first add an table view with 2 different resizable cells, first cell has the collection view and a label: class ViewController: UIViewController,

How to integrate sign in with apple in iOS 12 or earlier? [duplicate]

谁说我不能喝 提交于 2020-12-31 02:51:33
问题 This question already has answers here : Will “Sign in With Apple” allow apps to be backward compatible with iOS 12 and lower? (2 answers) Closed 3 months ago . My app was rejected due to a third-party login service. So I've implemented Sign in with Apple for iOS 13. Problem is how to provide backward compatibility for iOS 12 or earlier. 回答1: In my case, it only works (for iOS12 and below) if I avoid importing CryptoKit for the sha256 encryption. Instead of using the sha256 function provided

How to integrate sign in with apple in iOS 12 or earlier? [duplicate]

主宰稳场 提交于 2020-12-31 02:40:26
问题 This question already has answers here : Will “Sign in With Apple” allow apps to be backward compatible with iOS 12 and lower? (2 answers) Closed 3 months ago . My app was rejected due to a third-party login service. So I've implemented Sign in with Apple for iOS 13. Problem is how to provide backward compatibility for iOS 12 or earlier. 回答1: In my case, it only works (for iOS12 and below) if I avoid importing CryptoKit for the sha256 encryption. Instead of using the sha256 function provided

iOS 12.0 Alternative to Using Deprecated archiveRootObject:toFile:

旧巷老猫 提交于 2020-12-29 05:24:27
问题 With iOS 12, archiveRootObject:toFile:has been deprecated. Can anyone suggest a streamlined alternative to archiving objects to a file? //Generic example of archiver prior to iOS 12.0 -(BOOL) archive:(id)archiveObject withFileName:(NSString*)filename { NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]; return [NSKeyedArchiver archiveRootObject:archiveObject toFile:path]; } 回答1: Thanks to @vadian for the hint, here's what I've come up with to do archiving and

iOS 12.0 Alternative to Using Deprecated archiveRootObject:toFile:

廉价感情. 提交于 2020-12-29 05:24:11
问题 With iOS 12, archiveRootObject:toFile:has been deprecated. Can anyone suggest a streamlined alternative to archiving objects to a file? //Generic example of archiver prior to iOS 12.0 -(BOOL) archive:(id)archiveObject withFileName:(NSString*)filename { NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]; return [NSKeyedArchiver archiveRootObject:archiveObject toFile:path]; } 回答1: Thanks to @vadian for the hint, here's what I've come up with to do archiving and