ios10

sqlite3_prepare_v2 exc_bad_access in iOS 10

家住魔仙堡 提交于 2019-12-01 05:43:33
I have use sqlite in my iOS project for database. In iOS 9 all things are working perfectly. Now i have update new Xcode. But app is crashes many times at 'sqlite3_prepare_v2'. Also, i am not closing database overtime. And open it only once. I have added DB open in below code b'acs in debug i got DB close. But still got crash. crash Can anyone help me ? Thanks in advance I think issue is in line 2592. Do not treat key as string when passing it to sqlite3_key(...) Not sure how you generate key but if first byte is set '\0' then strlen return 0 (which may happen pretty often if you use some

How to intercept “Messages” sent from CallKit incoming call screen?

久未见 提交于 2019-12-01 05:30:28
I'm using iOS 10's CallKit to receive incoming calls. The calls in my app do not come from "phone numbers" or "email addresses", but from an internal identifier in my protocol. I thus report incoming calls with the CXHandleType of CXHandleTypeGeneric (and not CXHandleTypePhoneNumber or CXHandleTypeEmailAddress ), using a custom string as the "value" of the handle. When I report the incoming call, and the phone is not locked, the user sees an incoming call screen, with the buttons "Remind Me", "Message", "Decline", and "Accept". If the user presses the "Message" button, and selects one of the

CNContactViewController navigation bar different between versions

廉价感情. 提交于 2019-12-01 05:13:56
问题 Our tint color is white. Our app uses CNContactViewController. In our version of the app in the store built with Xcode 7 targeting iOS 8 and 9, if you were iOS 9 we called CNContactViewController. The back button is white but has a gray navigation bar behind it. In our development build using Xcode 8 targeting iOS 9 and 10, there is no gray bar, so the back button is white on top of white and very hard to see the shadow. Has anyone else experienced changes between Xcode versions/SDK versions

Custom URL Scheme for Settings on iOS 10?

☆樱花仙子☆ 提交于 2019-12-01 04:04:19
Any Idea what happened to the Setting's Custom URL Scheme on iOS 10? Is Apple still giving acess to third-pary apps to launch iOS Settings from the app via URL Scheme on iOS10? The Old URL scheme are not working anymore! None of the previous methods for launching the root "Settings" app on iOS 8+ were officially supported by Apple, so unfortunately we can't rely on them. It's also possible that apps that relied on the undocumented behaviors could be rejected during App Store review, even if others have been approved--even if the same app had been previously approved! I've been unable to

sqlite3_prepare_v2 exc_bad_access in iOS 10

我怕爱的太早我们不能终老 提交于 2019-12-01 02:46:44
问题 I have use sqlite in my iOS project for database. In iOS 9 all things are working perfectly. Now i have update new Xcode. But app is crashes many times at 'sqlite3_prepare_v2'. Also, i am not closing database overtime. And open it only once. I have added DB open in below code b'acs in debug i got DB close. But still got crash. crash Can anyone help me ? Thanks in advance 回答1: I think issue is in line 2592. Do not treat key as string when passing it to sqlite3_key(...) Not sure how you

How to check if Apple Maps is installed

可紊 提交于 2019-12-01 02:32:54
Anyone aware how to check whether Apple Maps is installed or not? I could not find anything in the docs. With iOS10 users can delete the Apple Maps application. While for Google Maps we can use UIApplication.shared.canOpenURL() to check if it's installed. I am not aware of such a thing exists to check for Apple Maps. Of course one can check if opening a MKMapItem with mapItem.openInMaps() fails - but that does not help for checking in advance. The simple answer is this is not currently possible. The reason is that Apple Maps application is not deleted, only application icon is removed from

Local notifications are not firing in ios10

只愿长相守 提交于 2019-12-01 02:28:34
问题 I'm using UNUserNotificationCenter for ios 10. For testing, I'm setting a local notification for 10 seconds from current time. This is what I tried, - (void)viewDidLoad { [super viewDidLoad]; UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; [center requestAuthorizationWithOptions:(UNAuthorizationOptionBadge | UNAuthorizationOptionSound | UNAuthorizationOptionAlert) completionHandler:^(BOOL granted, NSError * _Nullable error) { if (!error) { NSLog(@

ISO8601DateFormatter doesn't parse ISO date string

流过昼夜 提交于 2019-12-01 02:13:19
I'm trying to parse this 2017-01-23T10:12:31.484Z using native ISO8601DateFormatter class provided by iOS 10 but always fails. If the string not contains milliseconds, the Date object is created without problems. I'm tried this and many options combination but always fails... let formatter = ISO8601DateFormatter() formatter.timeZone = TimeZone(secondsFromGMT: 0) formatter.formatOptions = [.withInternetDateTime, .withDashSeparatorInDate, .withColonSeparatorInTime, .withColonSeparatorInTimeZone, .withFullTime] Any idea? Thanks! Prior to macOS 10.13 / iOS 11 ISO8601DateFormatter does not support

Custom URL Scheme for Settings on iOS 10?

萝らか妹 提交于 2019-12-01 01:20:03
问题 Any Idea what happened to the Setting's Custom URL Scheme on iOS 10? Is Apple still giving acess to third-pary apps to launch iOS Settings from the app via URL Scheme on iOS10? The Old URL scheme are not working anymore! 回答1: None of the previous methods for launching the root "Settings" app on iOS 8+ were officially supported by Apple, so unfortunately we can't rely on them. It's also possible that apps that relied on the undocumented behaviors could be rejected during App Store review, even

UNCalendarNotificationTrigger doesn't get stored unless repeats is true

五迷三道 提交于 2019-11-30 23:23:16
I've noticed that if I create an UNCalendarNotificationTrigger with a custom date it does't get added unless i put: let trigger = UNCalendarNotificationTrigger(dateMatching: components, repeats: **true**) Apple Example is: let date = DateComponents() date.hour = 8 date.minute = 30 let trigger = UNCalendarNotificationTrigger(dateMatching: date, repeats: true) which make sense to be repeats == true. In my scenario I dont need to create one notification that gets repeated many times, but I need multiple notificaitons fired only once on a specific calendar date (which is of course in the future)..