ios10

openURL: deprecated in iOS 10

空扰寡人 提交于 2019-11-27 07:58:28
Apple with iOS 10 has deprecated openURL: for openURL:option:completionHandler If I have: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.google.com"]]; How it will become? options:<#(nonnull NSDictionary *)#> in detail [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.google.com"] options:<#(nonnull NSDictionary<NSString *,id> *)#> completionHandler:nil]; Thanks Update options:@{} For empty dictionary with no key and value http://useyourloaf.com/blog/querying-url-schemes-with-canopenurl/ Write like this. Handle completionHandler

How to schedule a local notification in iOS 10 (objective-c) [closed]

假装没事ソ 提交于 2019-11-27 07:54:57
I'd like to schedule local notifications using iOS 10. I'd like to know how to do this. I've looked all around the web, but I keep finding clues only for registering and handeling the notifications. Not for the scheduling of a local notification. So, does anyone know how to do this? Try it. Its deprecated but working code. Use it for Before iOS 10.0 : //Get all previous noti.. NSLog(@"scheduled notifications: --%@----", [[UIApplication sharedApplication] scheduledLocalNotifications]); NSDate *now = [NSDate date]; now = [now dateByAddingTimeInterval:60*60*24*7]; //7 for 7th day of the week.

MFMailComposeViewController without Mail app installed?

↘锁芯ラ 提交于 2019-11-27 07:14:41
问题 Now that apps like Apple's "Mail" app can be deleted in iOS 10, what will happen when a developer attempts to initialize and present MFMailComposeViewController and the default Mail app is not installed and configured on the device? If the app crashes, what is the best way to check for this case? 回答1: On iOS 12 and above, canSendMail() will return true even if the Mail app is not installed. The MFMailComposeViewController will be presented, but the user will be unable to send mail. On iOS

How to implement rich notifications in ios 10 with Firebase

眉间皱痕 提交于 2019-11-27 07:10:55
问题 I have been looking for a solution for this since quite a while. But I am not able to find anything. I have implemented Push Notifications for iOS using FCM. But I don't know if FCM supports iOS 10 rich notifications. If it does, I didn't find code to implement it. Thanks in advance. 回答1: I have the same question why rich notification not working.. and the problem is with FCM mutable-content payload .. it turns in to gcm.notification.mutable-content when payload receives and that's why there

iOS开发Xcode8需要注意的那些坑

喜你入骨 提交于 2019-11-27 06:33:02
现在在苹果的官网上,我们已经可以下载到Xcode8的GM版本了,加上9.14日凌晨,苹果就要正式推出iOS10系统的推送了,在此之际,iOS10的适配已经迫在眉睫啦,不知道Xcode8 beat版本,童鞋们有木有下载过来试试呢?就我的使用来说,总体觉得苹果还是坑不断,但是也在一直进步的啦。下面我就来说说,iOS10的适配以及Xcode8使用上的一些注意点。 一、证书管理 用Xcode8打开工程后,比较明显的就是下图了,这个是苹果的新特性,可以帮助我们自动管理证书。建议大家勾选这个 Automatically manage signing (Ps.但是在beat2版本我用的时候,完全不可以,GM版本竟然神奇的又好了。) QQ20160913-8.png-96.9kB 下面我来说说可能会出现的问题: 1.Xcode未设置开发者账号情况下的截图 QQ20160913-0.png-38.5kB 解决办法是:大家在Xcode的偏好设置中,添加苹果账号,即可。 2.设备机器未添加进开发者的Device情况下的截图 QQ20160913-2.png-33.7kB 解决办法是:大家在官网将设备添加进开发机后,陪下描述文件重新下个描述文件即可。 3.正常情况:Xcode配置登录开发者账号后的图片,耐心等待即可。 QQ20160913-1.png-25.1kB 等待完成之后的图 QQ20160913

iOS 10.3 beta 3 doesn't persist data of KeychainItem

喜欢而已 提交于 2019-11-27 06:06:53
问题 I have observed behavior of app in iOS 10.2.1 device and iOS 10.3 beta 3 device for https://developer.apple.com/library/content/samplecode/GenericKeychain/Introduction/Intro.html Keychain data is being deleted in iOS 10.3 beta 3. That was still found in earlier versions. Do we have any alternative to do this? 回答1: Now that 10.3 has been officially released, it's been confirmed by several parties, including in this Apple's developers forum post, that this issue is not present in the final

Resume NSUrlSession on iOS10

我与影子孤独终老i 提交于 2019-11-27 06:03:13
iOS 10 is going to be released soon so it worth to test applications for compatibility with it. During such test we've discovered that our app can't resume background downloads on iOS10. Code that worked well on previous versions does not work on new one, both on an emulator and on a device. Instead of reducing our code to minimal working test case I've searched internet for NSUrlSession tutorials and tested them. Behaviour is the same: resuming works on previos versions of iOS but breaks on 10th. Steps to Reproduce: Download a project form NSUrlSession tutorial https://www.raywenderlich.com

ERROR ITMS - 90167 No. app bundles found in the package

十年热恋 提交于 2019-11-27 05:54:31
Before I start writing about the error, I'm running on macOS Sierra and using Xcode 7.3.1. So I'm creating an Archive from my App, I validate the App and it passes validation, but when uploading to App Store, I get the error "ERROR ITMS - 90167 No. app bundles found in the package". I've checked all my documentation and I have everything. I have all my provisioning profiles. I have Release as "iOS Distribution". This error just started appearing after I installed macOS Sierra. Anyone has an idea of why I'm getting this error? Thanks in Advance. Jolly Roger After chatting with folks at WWDC in

Error in iOS 10 : Unable to copy asset information from https://mesu.apple.com/assets/ for asset type

南笙酒味 提交于 2019-11-27 05:26:57
问题 2016-10-05 13:36:21.383340 MyApp[1867:72704] 0x60000015e350 Copy matching assets reply: XPC_TYPE_DICTIONARY <dictionary: 0x60000015e350> { count = 1, transaction: 0, voucher = 0x0, contents = "Result" => <int64: 0x600000226fe0>: 29 } 2016-10-05 13:36:21.385076 MyApp[1867:72704] 0x608000556420 Daemon configuration query reply: XPC_TYPE_DICTIONARY <dictionary: 0x608000556420> { count = 2, transaction: 0, voucher = 0x0, contents = "Dictionary" => <dictionary: 0x6080005566e0> { count = 1,

UIImagePickerController in Swift 3

你说的曾经没有我的故事 提交于 2019-11-27 04:50:43
问题 I've recently updated to Swift 3 in Xcode 8 using the developer beta. I'm trying to implement Firebase Auth, and everything's going well. My Problem: I'm trying to upload an image as a user's profile picture to a Firebase database. I thought I could use the UIImagePickerController to do this, but when I do, I get a "Thread 7: Signal SIGABRT I know what this would normally indicate, but I checked, and my image does indeed print my test statement when I tap it. My failed method: ViewController