ios13

How to make Onboarding work with Scene Delegate in iOS13?

為{幸葍}努か 提交于 2020-04-18 12:32:30
问题 I am trying to set up my onboarding screen in the SceneDelegate. When I run the code below, it compiles, but just goes to a black screen. They're many great onboarding tutorials for AppDelegate, but very few for the new SceneDelegate with iOS13. I took this tutorial and tried to apply it to SceneDelegate, but I can't get it to work: https://www.youtube.com/watch?v=y6t1woVd6RQ&t=537s This is my scene delegate code. var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session:

How to use UINavigationBarAppearance in iOS 13

天涯浪子 提交于 2020-04-18 06:51:16
问题 How do you use this new object to customize the navigation bar in iOS 13? I tried the following code in Objective-C but it's not working correctly. It only shows my title text attributes while a view controller is being pushed or popped on to the navigation stack. UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; appearance.titleTextAttributes = @{NSFontAttributeName: font}; Here is the documentation for this object. https://developer.apple.com/documentation/uikit

How to use UINavigationBarAppearance in iOS 13

最后都变了- 提交于 2020-04-18 06:51:08
问题 How do you use this new object to customize the navigation bar in iOS 13? I tried the following code in Objective-C but it's not working correctly. It only shows my title text attributes while a view controller is being pushed or popped on to the navigation stack. UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; appearance.titleTextAttributes = @{NSFontAttributeName: font}; Here is the documentation for this object. https://developer.apple.com/documentation/uikit

How to detect iOS 13 on JavaScript?

谁都会走 提交于 2020-04-15 21:09:29
问题 I use this function to detect iOS export function isiOS() { return navigator.userAgent.match(/ipad|iphone/i); } is there any way to make it detected iOS13+? thanks Why do I need it? usually, iOS safari can't download files therefore to make image downloadable I should render it as <img src={qrImage} alt="creating qr-key..." /> however on Android/PC and pretty much everywhere else it's possible to do it directly via <a href={qrImage} download="filename.png"> <img src={qrImage} alt="qr code" />

How to detect iOS 13 on JavaScript?

我的未来我决定 提交于 2020-04-15 21:08:50
问题 I use this function to detect iOS export function isiOS() { return navigator.userAgent.match(/ipad|iphone/i); } is there any way to make it detected iOS13+? thanks Why do I need it? usually, iOS safari can't download files therefore to make image downloadable I should render it as <img src={qrImage} alt="creating qr-key..." /> however on Android/PC and pretty much everywhere else it's possible to do it directly via <a href={qrImage} download="filename.png"> <img src={qrImage} alt="qr code" />

iOS April30 (extended to June30) 2020 Requirements — iOS 13 SDK, All-Screen Design, Launch Storyboard, Swift3

僤鯓⒐⒋嵵緔 提交于 2020-04-14 07:24:30
问题 April2020 Update As of April/2/2020 and due to COVID-19 pandemic, Apple extended the deadline for the new guidelines that enforces iOS13 and Swift 4.x from April 30 to June 30 of 2020. This was announced on their developer website. Important Apple is deprecating Swift 3.x, codebases written in Swift 3.x must be updated to (at least) Swift 4.x. It is not possible to deploy to AppStore from a Swift 3.x project starting April 2020. See Edit #1 & Edit #2 for explanation. According to this update

Repeat/Autoreverse animations in iOS 13.x

折月煮酒 提交于 2020-04-13 09:09:52
问题 Previously in swift you could do this: let animator = UIViewPropertyAnimator(duration: 0.25, curve: .easeIn) { UIView.setAnimationRepeatCount(Float.infinity) UIView.setAnimationRepeatAutoreverses(true) let transform = CATransform3DIdentity let rotate = CATransform3DRotate(transform, 45, 1, 1, 0) self.ex.layer.transform = rotate } However, now there is a deprecation message on UIView.setAnimationRepeatCount and UIView.setAnimationRepeatAutoreverses . Does anybody know what they was replaced

ios 13 objective-c background task request

依然范特西╮ 提交于 2020-04-11 05:31:32
问题 I've got a question with objective-c and background task request. Restricted to background modes with ios 13. My App does not run in the background more than 30 seconds. Background modes changed with ios 13. I need to register a background task with objective-c like this: BGTaskScheduler.shared.register(forTaskWithIdentifier: "com.SO.apprefresh", using: nil) { task in self.scheduleLocalNotification() self.handleAppRefreshTask(task: task as! BGAppRefreshTask) } and I need schedule when app

How to determine that ARObjectAnchor was removed from the scene?

自作多情 提交于 2020-04-11 04:48:27
问题 I am trying to use ARKit for validating the position of a toy. I have an ARObject scan resource, and placing the toy in camera view works pretty well. In other words, didAdd and didUpdate of SCNScene and ARSession are called as expected in a reasonable time after the toy is placed in camera view. But when i move the toy away from the camera view, didRemove does not get called, neither for SCNScene nor for ARSession . I did read advocations of this behaviour, saying "well ARKit can't know if

Why doesn't my iOS app disable dark mode?

别等时光非礼了梦想. 提交于 2020-04-10 08:30:50
问题 So ... I've tried to set my app to disable iOS 13 dark mode by forcing light mode according apple documentation, in the emulator all attempts work fine, but when I try on the real device, nothing happens, it's like I've never changed my code First Attempt Override the Interface Style for a Window, View, or View Controller I tried to put this code sample in my viewDidLoad() Nothing Changed if #available(iOS 13.0, *) { overrideUserInterfaceStyle = .light } else { // Fallback on earlier versions