ios10

AVSpeechSynthesizer errors in iOS 10

不打扰是莪最后的温柔 提交于 2019-12-09 19:17:23
问题 I'm currently creating a text-to-speech app using AVSpeechSynthesizer() . It's working fine in iOS 9 but has the following error in iOS 10: Could not get attribute 'LocalURL': Error Domain=MobileAssetError Code=1 "Unable to copy asset attributes" UserInfo={NSDescription=Unable to copy asset attributes} Does anyone know what's going on here? static let speechSynthesizer = AVSpeechSynthesizer() static func speak(text: String) { if speechSynthesizer.isSpeaking { speechSynthesizer

how to implement multiple local notification not a single notification for swift 3

不羁的心 提交于 2019-12-09 17:09:15
问题 i have use the single notification , and this is my code: this is for register the local notification>>> func registerLocal() { let center = UNUserNotificationCenter.current() center.requestAuthorization(options: [.alert, .badge, .sound]) { (granted, error) in if granted { print("Yay!") } else { print("D'oh") } } } and this function to schedule the local notification>>> func scheduleLocal() { registerCategories() let center = UNUserNotificationCenter.current() // not required, but useful for

XCode8 IOS10 问题总结

早过忘川 提交于 2019-12-09 11:34:50
#升级XCode8问题总结 ###Keychain 在 Capabilities 中打开 Keychain sharing , 系统会自动添加 XXX.entitlements 文件 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>keychain-access-groups</key> <array> <string>$(AppIdentifierPrefix)你的Bundle Identifier</string> </array> </dict> </plist> ###Xcode 8运行项目,屏蔽杂乱无章日志 Edit Scheme -> Run -> Arguments 在 Environment Variables 里边添加 OS_ACTIVITY_MODE = disable 遗留问题 Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer

CoreBluetooth advertising in background on iOS 10

柔情痞子 提交于 2019-12-09 11:09:46
问题 First: I have an iPad Air 2, and an iPhone 7. For further reading we estimate that the app is active and open on iPad and in background mode on iPhone. The app is exactly the same, even with same Bluetooth Service UUIDs and same DataLocalNameKey. I want to write an app that can advertise a bluetooth service in background and is able to discover this service (optimal in background too). As I already read I can't use apples beacon technology cause there it's only possible to get scanning

iOS 10 : Add sticker extension to an existing Application

穿精又带淫゛_ 提交于 2019-12-09 07:53:33
问题 I want to make an iOS sticker pack for my application. I've been looking around and I managed to do a sticker app via Xcode. My problem is that I don't want a stand-alone sticker app. Users will never go to the store to download it separately. I want the sticker to be include in my classic app, like an "extra" : "You've downloaded the app, thanks you, here are stickers you can use in message". I've tried to do "Add Target" like explained here But when I run my app, I can see my view

Trying to send sms in iOS 10, Is “sms:” protocol broken?

懵懂的女人 提交于 2019-12-09 06:00:31
问题 I have a click-to-send-sms button. Now I'm using this code when the button is clicked: if (platform == 'iOS') { if (version == 4 || version == 5 || version == 6 || version == 7) { link = 'sms:' + serviceNumber + ';body=' + body; } else { link = 'sms:' + serviceNumber + '&body=' + body; } } else { link = 'sms:' + serviceNumber + '?body=' + encodeURIComponent(body); } window.location.href = link; They are telling me that it isn't working anymore in iOS 10, nothing happens when the button is

UIViewPropertyAnimator different behaviour on iOS10 and iOS11 reversing an animation. Bug on `isReversed` and `fractionComplete` properties?

戏子无情 提交于 2019-12-09 05:52:36
问题 THE PROBLEM Running the same code on iOS10 and iOS11 my UIViewPropertyAnimator has a different behaviour just after changing of his .isReversed property. Everything is ok on iOS10. The animation problem happens on iOS11 CONDITIONS It's true for any animations, not only for a particular one, and it is verifiable both by watching the animation and within the code. It happens both on simulators and real devices. DETAILS Once created a UIViewPropertyAnimator with his animation, during its running

Runtime issues with iOS 10/XCode 8 [duplicate]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 04:32:52
问题 This question already has answers here : Hide strange unwanted Xcode logs (12 answers) Closed 3 years ago . Since I built and started running app on iOS 10 simulator, I started getting logs such as : objc[6880]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x120275910) and /Applications/Xcode.app

`touchesBegan:withEvent:` is delayed at left edge of screen

心不动则不痛 提交于 2019-12-09 00:55:10
问题 I'm experiencing an issue where the first call to touchesBegan:withEvent: on a UIView or UIViewController is delayed when you touch on the left edge of the screen. This seems to be a new issue with iOS 10, and only happens on devices with 3D Touch (iPhone 6s and newer). In fact, if you disable 3D Touch in General->Accessibility, the issue goes away. However, the issue doesn't seem to happen when you use UIGestureRecognizers . My workaround at the moment is to create a UIGestureRecognizer

How (and when) do I use iCloud's encodeSystemFields method on CKRecord?

依然范特西╮ 提交于 2019-12-08 23:09:45
问题 encodeSystemFields is supposed to be used when I keep records locally, in a database. Once I export that data, must I do anything special when de-serializing it? What scenarios should I act upon information in that data? As a variation (and if not covered in the previous question), what does this information help me guard against? (data corruption I assume) 回答1: encodeSystemFields is useful to avoid having to fetch a CKRecord from CloudKit again to update it (barring record conflicts). The