ios13

PHImageResultIsDegradedKey/PHImageFileURLKey is not found

不羁岁月 提交于 2019-12-12 08:12:29
问题 iOS 13 beta4 no longer gives 1) PHImageFileURLKey 2) PHImageResultIsDegradedKey in image result info keys. Anyone knows a way to find the fileurl of the PHAsset? 回答1: You have to use this function from PHAsset object: - (PHContentEditingInputRequestID)requestContentEditingInputWithOptions:(nullable PHContentEditingInputRequestOptions *)options completionHandler:(void (^)(PHContentEditingInput *__nullable contentEditingInput, NSDictionary *info))completionHandler; Then you can retrieve URL

How to get index path on click of button from UITableView in Swift 5 [duplicate]

大憨熊 提交于 2019-12-11 19:46:23
问题 This question already has answers here : swift: how to get the indexpath.row when a button in a cell is tapped? (14 answers) Closed 3 months ago . In tableview, on the cells there are buttons in it, need to get the index of tableview means, which index cell's button is clicked. So, not able to implement it in swift 5. So far tried is but this give me wrong value. let position: CGPoint = sender.convert(CGPoint.zero, to: organizationsTableView) if let indexPath = organizationsTableView

PSA: [[AVAudioPlayer alloc] init] crashes in iOS 13.1+ ( and AVAudioPlayer() )

狂风中的少年 提交于 2019-12-11 19:10:31
问题 One of our apps uses an AudioManager class which handles playback of various audio files and it creates two AVAudioPlayer instances on init. Many of our methods work under the assumption that these two instances will never be nil, so we use the generic init method to create these two instances when the manager class's singleton is initialized, like this: - (id)init { self = [super init]; if(self){ _pushPlayer = [[AVAudioPlayer alloc] init]; _queuePlayer = [[AVAudioPlayer alloc] init]; }

iOS 13 - Estimote SDK - Beacon ranging

耗尽温柔 提交于 2019-12-11 18:48:53
问题 I've encountered problem with beacon ranging in iOS 13 Ranging Nearable stickers stop working self.nearableManager.startRanging(forIdentifier: nearableIdentifier) Nothing happens in delegate method: func nearableManager(_ manager: ESTNearableManager, didRangeNearable nearable: ESTNearable) { } UPDATE Error found: Ranging nearables failed with error: Error Domain=com.estimote.nearables Code=301 "Blueooth is not powerd on." UserInfo={NSLocalizedDescription=Blueooth is not powerd on.} When I use

AVPlayerViewController pops all UIViewControllers from UINavigationController when exits from fullscreen (iOS 13)

白昼怎懂夜的黑 提交于 2019-12-11 17:00:54
问题 Note that this problem occurs specifically in iOS 13. The same code and structure works perfectly on iOS 10~12. The app plays video on a UIViewController that is pushed into the UINavigationViewController. The video plays fine and goes to full screen as usual but when I press the done button to exit the fullscreen, the entire stack of UIViewControllers gets popped and it lands in the home view. I'm using xib, swift 5, Xcode 11 Here's the code where I create the player and play the video: let

How to stop announcing of Siri Shortcuts Parameters over headsets (iOS 13)?

放肆的年华 提交于 2019-12-11 16:44:44
问题 Whenever I invoked Siri Shortcut say "HomeControl" and if my iPhone is not connected with any bluetooth device then Siri say's "What can I do for you" (Disambiguation Prompt) after this show the list of all parameters and ready to listen. But if my iPhone is connected with any Bluetooth device then Siri Say's "What can I do for you" (Disambiguation Prompt) and after this announced all the parameters like "Turn Off the fan", "Turn On the fan" .... etc. What i want to do is :- I want to stop

Does iOS 13 - UIMenu have a bug that doesn't show its image?

只谈情不闲聊 提交于 2019-12-11 15:36:19
问题 Paste the following code into a project: No image shows next to 'Device Honey' ie the UIMenu However the image shows up next to 'Copy' ie the UIACtion . Am I doing something wrong? If this is a bug? Is there a workaround? class ViewController: UIViewController { let tableview: UITableView = { let tv = UITableView() tv.frame = UIScreen.main.bounds return tv }() override func viewDidLoad() { super.viewDidLoad() view.addSubview(tableview) tableview.register(UITableViewCell.self,

iOS 13 PHP Script payload for Push notification

ε祈祈猫儿з 提交于 2019-12-11 14:59:52
问题 I just come to know that iOS 13 have changed Push notification device token and Payload. I have update App and published it. Now, We have server in Php, We send both alert and silent notification to the users. I have gone through "https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns" Apple Documentation, but I am still not able to understand how can I pass new headers in payload. Here is the my Php Script. <

In iOS 13, what events do I get when the user swipes my app up in the app switcher?

旧城冷巷雨未停 提交于 2019-12-11 10:48:23
问题 I'm finding it extraordinarily difficult to categorize and account for what events I get (or don't get) when the user swipes my app up in the app switcher on iOS 13. This seems to be because of changes caused by the multiple scene support. What are the events that I get in that situation? 回答1: Let's assume that your app supports window scenes. So what the user is swiping up in the app switcher is really a scene , not your app as a whole. Then the possibilities appear to be as follows. On an

Change tabBar height in Swift 5 for IOS 13

限于喜欢 提交于 2019-12-11 06:24:29
问题 I need to change the UITabBar height to 95. I can do that in the older version of iOS Swift. This is my code that work in the older version. override func viewWillLayoutSubviews() { super.viewWillLayoutSubviews() tabBar.frame.size.height = 95 tabBar.frame.origin.y = view.frame.height - 95 menuButton.frame.origin.y = self.view.bounds.height - tabBar.frame.size.height - 10 shadowBtn.frame.origin.y = self.view.bounds.height - tabBar.frame.size.height - 15 } 回答1: Try it in viewDidLayoutSubviews