ios13

`scene(_ scene: UIScene, continue userActivity: NSUserActivity)` doesn't get called when the app is launched after the user clicks on a universal link

谁说我不能喝 提交于 2019-12-23 02:19:57
问题 Method scene(_ scene: UIScene, continue userActivity: NSUserActivity) doesn't get called when the app is launched after the user clicks on a universal link. It works fine when already launched app opens again after the user clicks on the universal link. The sample code: func scene(_ scene: UIScene, continue userActivity: NSUserActivity) { guard userActivity.activityType == NSUserActivityTypeBrowsingWeb, let incomingURL = userActivity.webpageURL, let components = NSURLComponents(url:

UITableViewAlertForLayoutOutsideViewHierarchy when UITableView doesn't have window iOS13

走远了吗. 提交于 2019-12-22 16:46:33
问题 I started to receive warning (below) on iOS13. I have noticed that this warning pops up because UITableView 's window is null (another tab is selected, pushed detailed view controller on table selection...). I am trying to update UITableView from NSFetchedResultController delegate. What is the correct way to do this on iO13 to keep table updated? Code below worked fine on previous releases. PS: Any kind of beginUpdates , reloadRowsAtIndexPaths:withRowAnimation: , insertSections

UITableViewAlertForLayoutOutsideViewHierarchy error: Warning once only (iOS 13 GM)

你离开我真会死。 提交于 2019-12-22 04:01:30
问题 I am getting a strange error with iOS13 when performing a Segue and I can't figure out what it means, nor can I find any documentation for this error. The problem is that this seems to cause a lot of lag (a few seconds) until the segue is performed. 2019-09-11 22:45:38.861982+0100 Thrive[2324:414597] [TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added

Can't Upload Video to Firebase Storage on iOS 13

故事扮演 提交于 2019-12-21 23:22:25
问题 Works perfectly fine on iOS 12. Simple boilerplate code: let storageRef = storage.reference().child("\(profile.studioCode)/\(selected.classId)/\(uploadDate)") //Upload file and metadata let uploadTask = storageRef.putFile(from: videoURL, metadata: metadata) //Listen for state changes and, errors, and completion of the upload uploadTask.observe(.resume) { (snapshot) in //upload resumed or started } uploadTask.observe(.pause) { (snapshot) in //upload paused } uploadTask.observe(.progress) {

application(…continue userActivity…) method not called in ios 13

扶醉桌前 提交于 2019-12-21 09:15:40
问题 Hi I'm making ios app using UniversalLink. Universal Link works fine, but callback method is not called. My AppDelegate.swift is below. import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } func application(_ application:

Optional linking for Swift Combine.framework in Xcode 11

耗尽温柔 提交于 2019-12-21 04:09:13
问题 Our application supports iOS 11 and higher. In iOS 13 we use SwiftUI + Combine we wrap import of SwiftUI or Combine framework with correspondent check #if canImport(SwiftUI) or #if canImport(Combine) . If we run our app from Xcode 11 under iOS 12 we have error dyld: Library not loaded: /System/Library/Frameworks/Combine.framework/Combine We fixed same issue for SwiftUI by linking it optionally. But we can't make same for Combine as it can not be even selected for linking 回答1: You can add the

iOS 13 - silent push notifications are no longer reliable

十年热恋 提交于 2019-12-21 03:48:15
问题 iOS 13 changes: Change 1: In iOS 13 Beta 6, a silent remote notification (AKA Background Notification) with priority 10 is no longer handled by the OS and dropped. This was documented in the past but never enforced. Doc: It's an error to specify this priority (10) for a notification whose payload contains the content-available key. Log: error 14:11:19.224387 +0300 dasd Not Supported: High-priority silent push. (App=) default 14:11:19.224713 +0300 dasd Daemon Canceling Activities: {( com.apple

UIViewController custom transition stuck on iOS13

一曲冷凌霜 提交于 2019-12-20 12:08:32
问题 I've implemented a custom transition between two view controllers in my iOS app and it worked fine with iOS 10, 11, and 12. Now I want make it ready for iOS 13 using Xcode 11 beta 6 and iOS 13 beta 8, but the transition is stuck. The custom transition should move the first view controller up and out of the screen and the second one from bottom up. But now it falls back to iOS13 default presentation style pageSheet , just scales the first view controller down a little bit and adds a dimmed

ios13 settings bundle with child pane crashes Settings.app on real device

感情迁移 提交于 2019-12-20 10:34:46
问题 Using an iPad mini4 (A1538), running iOS 13 beta 6, using XCode 11 beta 5... Create a new iOS project using the Single View App template in XCode 11. Add a Settings.bundle with the root containing only two items: Child Pane Text Field Create a child pane plist file, add it to the Settings.bundle and link it to the root Child Pane entry via its Filename property, per normal Apple Settings Bundle guidelines. For the child pane create two items: Group Specifier (seems to be required else nothing

iOS 13 strange search controller gap

一曲冷凌霜 提交于 2019-12-20 10:26:42
问题 When running the App on iOS 13 beta 6, using Xcode 11 beta 5 I'm encountering the strange gap when presenting search results view controller: Here's a bit of how this is set up: let searchResultsController = BLSearchResultsController() let ret = UISearchController(searchResultsController: searchResultsController) ret.searchResultsUpdater = self ret.delegate = self ret.searchBar.delegate = self; ret.searchBar.autocapitalizationType = .none ret.searchBar.placeholder = NSLocalizedString(