ios13

Keyboard overlaying action sheet in iOS 13.1 on CNContactViewController

本秂侑毒 提交于 2019-11-28 00:35:20
问题 This seems to be specific to iOS 13.1, as it works as expected on iOS 13.0 and earlier versions to add a contact in CNContactViewController, if I 'Cancel', the action sheet is overlapping by keyboard. No actions getting performed and keyboard is not dismissing. 回答1: Kudos to @GxocT for the the great workaround! Helped my users immensely. But I wanted to share my code based on @GxocT solution hoping it will help others in this scenario. I needed my CNContactViewControllerDelegate

iOS 13 Set UISearchTextField placeholder color

痴心易碎 提交于 2019-11-27 23:46:46
问题 How do you set the placeholder color of iOS 13's UISearchTextField ? I tried the following with no success: searchField.attributedPlaceholder = NSAttributedString(string: "Some placeholder", attributes: [NSAttributedString.Key.foregroundColor: UIColor.red]) Is this a bug in the current beta or do I miss something? I am using Xcode 11, beta 7. 回答1: You can try this with Xcode 11, iOS 13 extension UISearchBar { func getTextField() -> UITextField? { return value(forKey: "searchField") as?

CNCopyCurrentNetworkInfo with iOS 13

只谈情不闲聊 提交于 2019-11-27 23:28:19
问题 Apple changed some things regarding WiFi with iOS 13. If you want to use CNCopyCurrentNetworkInfo your app needs to have one of the following Apps with permission to access location Your app is the currently enabled VPN app Your app configured the WiFi network the device is currently using via NEHotspotConfiguration Source: WWDC 19 session 713 I am configuring a network using NEHotspotConfiguration but I can not get the current SSID anymore after doing so. The following code worked fine with

Navigation bar becomes white when a UISearchController is added to it

守給你的承諾、 提交于 2019-11-27 21:25:14
问题 When I add a UISearchController to a UINavigationItem from an UINavigationController; it becomes white when the view loads and changes to the color specified when the user clicks on the search bar. This happened since ios 13.1. This video shows the behaviour: https://imgur.com/wn5zbnJ My code consists of a simple storyboard with a NavigationController + a TableViewController, and the NavigationController has a color assigned to it: The ViewController consists of the following code: class

In iOS13 the status bar background colour is different from the navigation bar in large text mode

南笙酒味 提交于 2019-11-27 15:19:55
Pre-conditions to reproduce the problem: Xcode 11 beta + iOS 13 (latest version until Jun. 12 2019) The navigation bar is in Large text mode Specify the colour of navigation bar. The status bar will remain in white in a real device, above the green navigation bar. Solutions I tried: Revert it back to iOS12 will solve it, but we will encounter iOS13 eventually... disabling the large text mode will solve it... hide the status bar will fix it, but it will cause status text overlapping with navigation bar item. Any ideas? appreciate any help. No hacks or funkiness required here. The key is

Disable the interactive dismissal of presented view controller in iOS 13

孤街醉人 提交于 2019-11-27 13:25:08
问题 iOS 13 introduces a new design of modalPresentationStyle .pageSheet (and its sibling .formSheet ) for modally presented view controllers… …and we can dismiss these sheets by sliding the presented view controller down (interactive dismissal) . Although the new "pull-to-dismiss" feature is pretty useful, it may not always be desirable. THE QUESTION: How can we turn the interactive dismissal off? - Bear in mind we keep the presentation style the same. 回答1: Option 1: viewController

iOS 13 - UIPopoverPresentationController sourceview content visible in the arrow

一世执手 提交于 2019-11-27 07:40:22
问题 When I am displaying some view in UIPopoverPresentationController and presenting it as popover popoverCon?.modalPresentationStyle = UIModalPresentationStyle.popover the content have moved upward toward and a some part is being display in the arrow. Further I had border around the popover popoverCon?.view.layer.borderColor = .orange popoverCon?.view.layer.borderWidth = 1.0; popoverCon?.view.layer.cornerRadius = 10.0; popoverCon?.view.layer.masksToBounds = false; it is not showing toward the

Presenting modal in iOS 13 fullscreen

懵懂的女人 提交于 2019-11-27 05:15:35
In iOS 13 Beta 1 there is a new behaviour for modal view controller when being presented. Now it's not fullscreen by default and when I try to slide down, the app just dismiss the View Controller automatically. How can I prevent this behaviour and get back to the old good fullscreen modal vc? Thanks pascalbros With iOS 13, as stated in the Platforms State of the Union during the WWDC 2019, Apple introduced a new default card presentation. In order to force the fullscreen you have to specify it explicitly with: let vc = UIViewController() vc.modalPresentationStyle = .fullScreen self.present(vc,

iOS13 on Xcode 11 Black screen even after adding SceneDelegate and updating Info.plist

北城余情 提交于 2019-11-27 04:39:40
问题 I am currently getting a blank screen with Xcode 11, Target iOS 13.0 (the app works fine with all below versions iOS 12.1 till 12.4), I want to make my App work for both iOS users above 12.1 and also 13.0 currently getting blank screen despite adding the below SceneDelegate to my existing project and adding App Manifest file import UIKit import SwiftUI @available(iOS 13.0, *) class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene,

Does iOS 13 has new way of getting device notification token?

瘦欲@ 提交于 2019-11-27 03:54:13
问题 So my friend got this email from OneSignal Due to a change that may occur as part of the upcoming iOS 13 release, you must update to the latest version of the iOS SDK before building your app with Xcode 11. All of OneSignal’s wrapper SDKs including React Native, Unity, and Flutter have been updated as well. The reason for this is that Xcode 11, which is being released alongside iOS 13, breaks a common technique that apps and libraries like OneSignal were using to get a push token for the