ios12

siri shortcut button (INUIAddVoiceShortcutButton) shows wrong title when have multiple shortcuts (NSUserActivity)

时间秒杀一切 提交于 2019-12-09 10:44:57
问题 I've 2 siri shortcuts in my App. I use NSUserActivity to donate these shortcuts. I've also created 2 NSUserActivityTypes in my info.plist. There are 2 view controllers which handle these shortcuts (1 view controller for 1 shortcut). If I add 1 siri shortcut from 1 view controller and then go to 2nd view controller the native siri shortcut button ( INUIAddVoiceShortcutButton ) on 2nd view controller automatically picks the first shortcut (created from 1st view controller) and shows "Added to

Application crashing while accessing microphone in iOS 12.1.2 for iPhone XS

流过昼夜 提交于 2019-12-08 08:24:33
问题 I am working on iOS application which uses microphone for video capture. When we try to capture video, it asks for microphone permission and crashes immediately after that. We are getting following error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: -[AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces " We have tried searching for this property for AVCaptureDevice. However, not able to find the same. 回答1: We have

Borring SSl iOS 12

心已入冬 提交于 2019-12-08 06:09:00
问题 I am using simple json basic auth request to api but getting the error code Xcode - 10.1 Beta Swift 4 My Code let username = "Api_Username" let password = "Api_Password" let loginString = String(format: "%@:%@", username, password) let loginData = loginString.data(using: String.Encoding.utf8)! let base64LoginString = loginData.base64EncodedString() let request = NSMutableURLRequest(url: NSURL(string: "\(BaseUrl)\(taskUrl)")! as URL) let session = URLSession.shared request.httpMethod = method

Stop app going to background when swiping up from bottom edge on iPhone X iOS 12

北战南征 提交于 2019-12-08 04:55:31
问题 My game is going into background mode when performing a swipe from the bottom edge of the screen on iPhone X iOS 12. As per Apple documentation overriding preferredScreenEdgesDeferringSystemGestures and calling setNeedsUpdateOfScreenEdgesDeferringSystemGestures should stop the app from going to background but this is's not working on iOS 12. I am using Unity3D and the editor has the Defer system gestures on edges option , which is implemented as per apple documentation, but also does not work

UITableView does not scroll when keyboard appears

走远了吗. 提交于 2019-12-07 06:01:09
问题 UITableView does not auto-scroll when a UITextField/UITextView becomes the first responder. It used to work just fine on iOS 9-11, but now it doesn't work anymore on iOS 12. What should I set up or change in the tableView to fix the behavior? Reference GIF 回答1: I found solution in the code, as you said. This part of code was blame: if #available(iOS 11.0, *) { tableView.contentInsetAdjustmentBehavior = .never } else { automaticallyAdjustsScrollViewInsets = false } 来源: https://stackoverflow

AFNetworking error 53 during attempted background fetch

◇◆丶佛笑我妖孽 提交于 2019-12-07 02:59:24
问题 While updating my application to support Background App Refresh I ran into problem with AFNetworking. I am getting NSPOSIXErrorDomain Code=53 "Software caused connection abort" . The problem seems to occur in iOS 12, where the background connection gets terminated. AFNetworking 2.6.3 is used to make the fetch. AppDelegate.m : - (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { [OrdersService performFetch];

Application crashing while accessing microphone in iOS 12.1.2 for iPhone XS

会有一股神秘感。 提交于 2019-12-06 15:15:17
I am working on iOS application which uses microphone for video capture. When we try to capture video, it asks for microphone permission and crashes immediately after that. We are getting following error: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: -[AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces " We have tried searching for this property for AVCaptureDevice. However, not able to find the same. We have tried searching for this property for AVCaptureDevice. However, not able to find the same. Solution: The

All applications are terminated by iOS 12 when iPhone is charging

让人想犯罪 __ 提交于 2019-12-06 11:49:25
I am facing an issue where iOS is terminating all the apps which are in background after the phone is connected for charging (this is only happening on iOS 12+). This does not happen always but happens once in a while. I have also verified that it's not just my app but all apps are killed. If anyone has faced similar issue or knows how to fix this then it would be a great help. Also this has been reported my by group of testers so its not a device specific issue. Note : My application is a background location application which is running always. 来源: https://stackoverflow.com/questions/52751712

How to use environment map in ARKit?

和自甴很熟 提交于 2019-12-06 06:20:12
问题 ARKit 2.0 added a new class named AREnvironmentProbeAnchor. Reading it's instructions, it seems that ARKit can automatically collect environment texture (cubemap?). I believe that we can now create some virtual objects reflecting the real environment. But I am still not clear how this work, particularly how the environment texture is generated. Does anyone have simple sample code demonstrating this cool feature? 回答1: Its pretty simple to implement environmentTexturing in your AR project. Set

Popup is not coming to ask permission to access camera in iOS 12

早过忘川 提交于 2019-12-06 05:59:10
问题 As per the apple standard, we need to ask permission to access user camera. so I have successfully integrated camera and it is working fine in iOS 11. but currently, I am testing camera feature and found that if user one time allowed camera access, The same app will not ask for permission even after fresh installed(from app store). so my question is, is it behavious changed in iOS 12 or we need to do some setup to asked permission every time when user try to install fresh App? Thanks 回答1: iOS