ios13

iOS 13 check for provisional authorization status of CLLocationManager

眉间皱痕 提交于 2020-01-24 11:34:07
问题 As per the WWDC video, https://developer.apple.com/videos/play/wwdc2019/705/, when you ask for " AlwaysAuthorization " permission you will see only " When In Use, Once and Don't allow" . Even if you tap on " When In Use ", the delegate call back will come back as kCLAuthorizationStatusAuthorizedAlways . This is working as expected. But is there a way to find out that the request is still provisional or actually-always-allow? There is no enum associated to this permission. The only allowed

iOS 13 check for provisional authorization status of CLLocationManager

强颜欢笑 提交于 2020-01-24 11:33:03
问题 As per the WWDC video, https://developer.apple.com/videos/play/wwdc2019/705/, when you ask for " AlwaysAuthorization " permission you will see only " When In Use, Once and Don't allow" . Even if you tap on " When In Use ", the delegate call back will come back as kCLAuthorizationStatusAuthorizedAlways . This is working as expected. But is there a way to find out that the request is still provisional or actually-always-allow? There is no enum associated to this permission. The only allowed

Video transcoding problem in IONIC with iOS 13.0

依然范特西╮ 提交于 2020-01-24 09:34:25
问题 We have an existing IONIC App and since iOS 13.0 has been released we ran into a problem with transcoding videos. When file path is read from camera.getPicture (with sourceType=PHOTOLIBRARY), and passed to videoEditor.transcodeVideo(), it indefinitely keeps calling the progress callback with value 0. It won’t throw any error and it won’t call the Completed callback. videoEditor.transcodeVideo() does not work on several real iPhone devices with iOS 13.0 +. I tried the same code on a simulator

How can I use the New York font in web content on iOS 13?

青春壹個敷衍的年華 提交于 2020-01-24 09:27:26
问题 Apple released a new font, New York, with iOS 13. Is it possible to set it in CSS for web content, like using -apple-system for San Francisco? 回答1: I was able to reference the fonts on my MacBook with these: .NewYork-Regular .NewYork-Bold .NewYork-Medium .NewYork-RegularItalic .NewYork-BoldItalic .NewYork-MediumItalic Others may exist, but these are the only ones that worked for me. I did install the font from their developer page before testing, but I'm not sure it's needed - it may be

Issues with named colors on iOS 11 with Xcode 11 beta

送分小仙女□ 提交于 2020-01-24 06:44:42
问题 I am trying to implement dark mode in my iOS app. I need to use named colors in order to do this, but I've run into a bit of a snag. Everything works fine on the iOS 13 simulator when switching between light and dark mode, and the colors are also correct in the iOS 12 simulator. The problem occurs when I try to run my app on an iOS 11 simulator. Any named colors that I've used in the storyboard default to the dark version of the color, and when I try to access a named color in code I get nil.

SwiftUI setting status bar style

吃可爱长大的小学妹 提交于 2020-01-23 17:46:07
问题 I have been attempting to set the statusbar in my SwiftUI app to light text as it has a dark background. I found this solution on several sites but cannot get it to work. HostingController.swift import Foundation import UIKit import SwiftUI class HostingController : UIHostingController { override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } } This returns an error on the class declaration line Reference to generic type 'UIHostingController' requires arguments in <...

RPBroadcastSampleHandler any method not getting called

丶灬走出姿态 提交于 2020-01-23 08:01:47
问题 I want to implement screen sharing functionality like skype(when app is in background then also it will share screen of iPhone), and for that i am using broadcast extension. Here its my code in my viewcontroller.swift import UIKit import ReplayKit @available(iOS 12.0, *) class ViewController: UIViewController { var broadcastPicker: RPSystemBroadcastPickerView? var broadcastSession : NSObject? override func viewDidLoad() { super.viewDidLoad() let kPickerFrame = CGRect(x: 100.0, y: 100.0, width

RPBroadcastSampleHandler any method not getting called

只谈情不闲聊 提交于 2020-01-23 08:00:26
问题 I want to implement screen sharing functionality like skype(when app is in background then also it will share screen of iPhone), and for that i am using broadcast extension. Here its my code in my viewcontroller.swift import UIKit import ReplayKit @available(iOS 12.0, *) class ViewController: UIViewController { var broadcastPicker: RPSystemBroadcastPickerView? var broadcastSession : NSObject? override func viewDidLoad() { super.viewDidLoad() let kPickerFrame = CGRect(x: 100.0, y: 100.0, width

Change UIDatePicker selected Date text Color for Dark mode (iOS 13)

你离开我真会死。 提交于 2020-01-23 04:59:09
问题 Having trouble to find out a solution for changing the color of text for the selected Date in iOS 13 dark mode. I know how to change the color of the text of a UIPicker view using code self.timePicker.setValue(UIColor.black, forKeyPath: "textColor") OR using User Defined Runtime Attributes. But nothing is working for changing the selected date color for iOS 13 Dark mode. With background white color and black text color, my date picker-view looks like this: So with changing the text color

UITableViewCell selectedBackgroundView's color not visible when building on iOS 13

风流意气都作罢 提交于 2020-01-22 20:36:28
问题 I have given a tableview cell a color on selection in cellForRowAtIndexPath using let backgroundView = UIView() backgroundView.backgroundColor = UIColor.grey3 //custom color cell.selectedBackgroundView = backgroundView Since I am building with Xcode 11.0 the color is not propagated to the subviews of the cell anymore on an iOS 13 device or Simulator. If I build on an iOS 12.2 simulator using Xcode 11.0 it still works. Anyone has an idea what has changed to cause this behaviour? I am working