ios13

UIImageJPEGRepresentation and UIImagePNGRepresentation returns nil in iOS 13

拈花ヽ惹草 提交于 2021-01-28 07:21:36
问题 In my app I'm using the image picker to select an image on an iPhone. After the image was selected, I do: data = UIImageJPEGRepresentation(image, 1.0); On iOS 12.4.1 and below, everything works fine, if I pick either PNG or JPEG image. On iOS 13, JPG works fine, but PNG does not. If I pick a JPG: data = UIImageJPEGRepresentation(image, 1.0); // works data = UIImagePNGRepresentation(image); // works But if I pick a PNG: data = UIImageJPEGRepresentation(image, 1.0); // data is nil data =

Connect to NFCTagReaderSession NFCISO7816Tag tag and send command in iOS 13

穿精又带淫゛_ 提交于 2021-01-28 05:50:50
问题 I am working on NFCTagReaderSession the newly available in iOS 13, i struck to connect the session tag and send apdu commands for communication. when i call the connect property it looks long time like 15 secs to connect by the time when it is connected(beeps sound) it shows an error message NFCError Code=201 "Session timeout". Every time tagReaderSession:didInvalidateWithError is calling while connecting the card and i could not send apdu commands. the code which i tried to connect and send

TintColor not changing for UIBarButtonItem for .normal stage in case of iOS 13.2

岁酱吖の 提交于 2021-01-28 03:42:24
问题 I have tried the almost max solution and it did not help, selected state color is applying but for a normal state, it's not applying. This issue I am facing specifically in iOS13.2 only. tabBarItem.setTitleTextAttributes([NSAttributedString.Key.font: tabFont, NSAttributedString.Key.foregroundColor: UIColor.yellow], for: .selected) tabBarItem.setTitleTextAttributes([NSAttributedString.Key.font: tabFont, NSAttributedString.Key.foregroundColor: UIColor.white], for: UIControl.State.normal) I have

Is there any way to override the (dark/light) user interface style of iOS 13 Context Menus?

霸气de小男生 提交于 2021-01-27 21:12:45
问题 My app supports iOS 13 dark mode, and provides the user the option of matching the system appearance or forcing the app to always use either dark mode or light mode, irrespective of the system setting. The app also allows presenting a Context Menu when the user presses a UILabel . However, when presenting Context Menus using UIContextMenuInteractionDelegate methods, I cannot find any way to override the dark/light appearance of the menus, nor the appearance of the UITargetedPreview view that

Failing APNS for Independent WatchOS6 app

拜拜、爱过 提交于 2021-01-27 20:14:20
问题 After setting up a new independent WatchOS6 app, which now supports push notifications, getting the device to request the user for push notifications and capturing the push token. I can’t get my server to send a push notification. With all the correct credentials and P8 set up on my NodeJS server, I have tried to push messages to the device... This is the error all the time: Status 400 - DeviceTokenNotForTopic - Which according to Apple’s documentation, means that the Topic (BundleId of the

In iOS 13, when to save data?

こ雲淡風輕ζ 提交于 2021-01-27 11:31:16
问题 Scene support and multiple windows in iOS 13 have complicated the question of when to save data. A scene delegate's sceneDidEnterBackground might seem like a pretty good place, but there are times when it won't be sufficient: If your scene was frontmost and the user goes to the app switcher and terminates your app, you'll get sceneDidDisconnect and applicationWillTerminate , not sceneDidEnterBackground . If the user switches off the device while your app is frontmost, you'll get

In iOS 13, when to save data?

偶尔善良 提交于 2021-01-27 11:30:15
问题 Scene support and multiple windows in iOS 13 have complicated the question of when to save data. A scene delegate's sceneDidEnterBackground might seem like a pretty good place, but there are times when it won't be sufficient: If your scene was frontmost and the user goes to the app switcher and terminates your app, you'll get sceneDidDisconnect and applicationWillTerminate , not sceneDidEnterBackground . If the user switches off the device while your app is frontmost, you'll get

CSS only Parallax Scrolling stoped working with IOS/PadOS13?

隐身守侯 提交于 2021-01-27 05:09:56
问题 Okay so I’m quite new in the World of Web development. I finished my own Website with Css only Parallax Scrolling a few month ago. Some Problems came with the IOS13. For the Parallax Effect, i used the Description of Keith Clark. Everything went pretty well. It covered up almost all browsers, on desktop and mobile devices. With the new IOS13 though, the CSS-Only-Parallax Effect stoped working. I’ve done a lot of research, but i couldn’t figure it out. Is it possible to fix the problem? What

CSS only Parallax Scrolling stoped working with IOS/PadOS13?

老子叫甜甜 提交于 2021-01-27 05:08:16
问题 Okay so I’m quite new in the World of Web development. I finished my own Website with Css only Parallax Scrolling a few month ago. Some Problems came with the IOS13. For the Parallax Effect, i used the Description of Keith Clark. Everything went pretty well. It covered up almost all browsers, on desktop and mobile devices. With the new IOS13 though, the CSS-Only-Parallax Effect stoped working. I’ve done a lot of research, but i couldn’t figure it out. Is it possible to fix the problem? What

How to make List with single selection with SwiftUI 5

心不动则不痛 提交于 2021-01-21 08:43:05
问题 I am creating single selection list to use in different places in my app. Questions: Is there an easy solution I don't know? If there isn't, how can I finish my current solution? My goal: List with always only one item selected or one or none item selected (depending on configuration) Transparent background On item select - perform action which is set as parameter via init() method. (That action requires selected item info.) Change list data programmatically and reset selection to first item