ios10

AVAudioConverter is broken in iOS 10

房东的猫 提交于 2019-12-04 08:57:28
AVAudioConverter seems broken in iOS 10. The code was working in iOS 9 and now Error Domain=NSOSStatusErrorDomain Code=-50 "(null)" is returned no matter what audio format is used. It suprises me every year, that basic library functionality stops working. func audioConverterFailureIOS10() { // Describe the audio format let inFormat = AVAudioFormat(standardFormatWithSampleRate: 44100, channels: 2) let outFormat = AVAudioFormat(standardFormatWithSampleRate: 22050, channels: 2) // Allocate buffers let outBuffer = AVAudioPCMBuffer(pcmFormat: outFormat, frameCapacity: 1024) // Create an input block

Official way to use the new keyboard click sounds in iOS 10

夙愿已清 提交于 2019-12-04 08:34:02
问题 My app contains a custom control that copies the behaviour of the iOS standard keyboard. I can successfully play the system keyboard click sound with this code: UIDevice.current.playInputClick() On iOS 9 and below there is only one click sound and this call is all I need. On iOS 10, there are different click sounds for regular keys, for the backspace key and for other special keys. What is the official way to play these additional sounds? Do I have to use the alternative way from the linked

Using iOS8 and later devices with Xcode

被刻印的时光 ゝ 提交于 2019-12-04 08:32:00
问题 Using iOS8 and later devices with Xcode? 回答1: Well you have two options: 1)Straightforward, download Xcode 9 and you are good to go. 2) You need to put DeveloperDiskImage of iOS 11 in /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport Put iOS 11 DiskImage and you can find this diskImage in Xcode9 at same path in case you want to continue with XCode8 Path of iOS 11 Disk Image: ~/Applications/Xcode9.app/Contents/Developer/Platforms/iPhoneOS.platform

Getting Firebase MobileAssetError warning in XCode 8

人走茶凉 提交于 2019-12-04 08:30:02
Just downloaded XCODE 8 and IOS 10 on my iphone. I am getting some Firebase warnings on Xcode, but read that they were working on it and that you could continue to run simulator on your phone with no problems. The build succeeds but then I get this output on Xcode: 2016-09-15 15:04:54.598607 TheApp[443:51993] [MC]System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2016-09-15 15:04:54.601052 TheApp[443:51993] [MC] Reading from public effective user settings. 2016-09-15 15:05:00

How to send MSMessage in Messages Extension?

久未见 提交于 2019-12-04 08:07:51
I want to implement an imessage app, however being new to the messages framework and iMessage apps being such a new thing there aren't many resources. So I am following the WWDC video and using Apples providing sample app for a guide. I have three views, the MessageViewController which handles pretty much all the functionality and then a CreateViewController and a DetailsViewController . I am simply trying to create an MSMessage from the CreateViewController and display in the DetailsViewController .. then add to the data. However I get a crash when trying to create the data. @IBAction func

App icon is not showing in CallKit UI

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 07:42:12
I have configured my Provider Configuration for CallKit iOS. In which I have also set ' iconTemplateImageData ' for displaying app icon in CallKit UI. But app icon is not showing. It shows a white square box. Provider Configuration Code: CXProviderConfiguration *configuration = [[CXProviderConfiguration alloc] initWithLocalizedName:[NSString stringWithFormat:@"%@\n", _title]]; configuration.maximumCallGroups = 1; configuration.maximumCallsPerCallGroup = 1; UIImage *callkitIcon = [UIImage imageNamed:@"AppIcon"]; configuration.iconTemplateImageData = UIImagePNGRepresentation(callkitIcon);

Launch app from INExtension in SiriKit

和自甴很熟 提交于 2019-12-04 07:34:37
I want to use SiriKit to start a workout. Starting the workout requires opening the main app from the app extension. The boilerplate that Apple provides for the INStartWorkoutIntentHandling handler is func handle(startWorkout startWorkoutIntent: INStartWorkoutIntent, completion: (INStartWorkoutIntentResponse) -> Void) { let userActivity = NSUserActivity(activityType: NSStringFromClass(INStartWorkoutIntent)) let response = INStartWorkoutIntentResponse(code: .success, userActivity: userActivity) completion(response) } How can I open my own app from here? Something like myapp://workout?action

iOS 10: Custom UITabBar background image produces border at top of image. How do I remove it?

戏子无情 提交于 2019-12-04 07:23:52
Anyone have a working solution to get rid of this border in iOS 10? I have a custom UITabBar background image. I've tried the following with no results: tabBar.backgroundImage = UIImage(named: "myBackgroundImage.png") tabBar.shadowImage = nil tabBar.shadowImage = UIImage() // i've also tried combinations of this in the storyboard directly I finally threw my hands up in the air and set the bar style to "Black".. this doesn't get rid of the border, but makes it white. So it hides it. If you use backgroundImage then shadow line will come so you can try this : self.tabBar.backgroundImage = UIImage

iOS 10 - Repeating notifications every “x” minutes

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 07:19:09
In iOS 10, how can I set local notifications to repeat in minutes starting from a particular date/time. For example, trigger local notification every 15 minutes starting from 11 AM on 8th September? Assume that, below, dateTimeReminder.date has 09/08 11 AM. let dateStart = self.dateTimeNotif.date let notifTrigger = UNCalendarNotificationTrigger.init(dateMatching: NSCalendar.current.dateComponents([.day, .month, .year, .hour, .minute], from: dateStart), repeats: true) let notificationRequest = UNNotificationRequest(identifier: "MYNOTIF", content: notifContent, trigger: notifTrigger)

How do I debug my Siri (Intents) extension?

橙三吉。 提交于 2019-12-04 07:12:05
I'm building a Siri aka Intents extension . I do understand that I can attach the debugger to a running process after start, however, I never see my process. I do have the authorization for my app set to active and the extension must be running at least for some time, Siri is showing clear responses. By the Apple documentation, you should run the Extension Scheme with Siri as host app. However, if I try that nothing happens on the device, it's waiting to attach for ever. Apple mentions the first connection can take " several minutes ", but not hours ... Any idea where I'm going wrong or how to