ios9.3

How to speed up HKStatisticsCollectionQuery in iOS 9.3?

梦想的初衷 提交于 2021-02-11 07:11:11
问题 It seems HKStatisticsCollectionQuery is incredibly slow in iOS 9.3. It can take upwards of 40 seconds to return hourly statistics for a year for active calories where it took 1 or less before. let predicate = HKQuery.predicateForSamplesWithStartDate(anchorDate, endDate: endDate, options: []) let query = HKStatisticsCollectionQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: statisticOptions, anchorDate: anchorDate, intervalComponents: interval) 回答1: After many

How to speed up HKStatisticsCollectionQuery in iOS 9.3?

☆樱花仙子☆ 提交于 2021-02-11 07:09:46
问题 It seems HKStatisticsCollectionQuery is incredibly slow in iOS 9.3. It can take upwards of 40 seconds to return hourly statistics for a year for active calories where it took 1 or less before. let predicate = HKQuery.predicateForSamplesWithStartDate(anchorDate, endDate: endDate, options: []) let query = HKStatisticsCollectionQuery(quantityType: quantityType, quantitySamplePredicate: predicate, options: statisticOptions, anchorDate: anchorDate, intervalComponents: interval) 回答1: After many

Facebook Accountkit Javascript mobile form not showing - iOS 9.3

荒凉一梦 提交于 2020-01-06 21:47:32
问题 I am trying to implement the facebook accountkit using javascript. I've solved the 'api is not supported' error by using the Accountkit version: v1.0 It works fine on PC, but it has an error on iOS. The form of country_number and phone_number is not showing on iOS. I've tested in safari, chrome app, ionic webview. You can also test on this url : http://www.purepeople.co.kr:8888 How can I show the AccountKit login form on iphone? 来源: https://stackoverflow.com/questions/36720128/facebook

chatDidReceiveMessage method not called QuickBlox

流过昼夜 提交于 2019-12-31 03:03:32
问题 I am using QuickBlox-iOS SDK for chatting. Login/Signup is working perfectly. Also I am able to send message but the delegate method - (void)chatDidReceiveMessage:(QBChatMessage *)message; is not getting called. Here's the code I am using to setup chat. Adding the following code in appDelegate : // connect to Chat [[QBChat instance] addDelegate:self]; QBUUser *currentUser = [QBUUser user]; currentUser.ID = [Global sharedInstance].currentUser.ID; currentUser.password = @"password"; [[QBChat

Handling private frameworks in Xcode ≥ 7.3

流过昼夜 提交于 2019-12-27 19:15:07
问题 With Xcode 7.3 / iOS 9.3 Apple removed all private frameworks from the iOS SDKs. For research purposes (not App Store!) I need to work with a private framework (namely BluetoothManager.framework , but this is also an issue for any other private frameworks). Because these frameworks are no longer delivered in the iOS SDKs, I get a build (linker) error if my project attempts to link to this framework explicitly. Any ideas for a long(er)-term solution? 回答1: You can solve this problem by linking

Build app for IOS 9.3 and 10.0

别来无恙 提交于 2019-12-25 14:11:54
问题 I'm fairly new to iOS app development. I have had a quick look but can't find an answer but sorry in advance if this is a duplicate. I have an iOS app developed in Swift 2.3 using the 9.3 SDK but I also want it to work on 10.0. I have set the Base SDK as 9.3 but not sure if there is anything I have to do for it to work on 10, and how would I gain access to the 10.0 features? 回答1: Set the Base SDK to the latest OS use new features available in the current iOS release. Set the Deployment Target

Contacts and Microphone request access does not work on iOS 9

♀尐吖头ヾ 提交于 2019-12-25 08:57:26
问题 I've been stuck on a bug since last Monday, so I'm asking for help now .. Contacts and Micriohpone request access does not work on iOS 9. I use this piece of code in order to request access to contacts : let contactsStore = CNContactStore() func requestAccess(completionHandler: @escaping (Permission) -> ()) { self.contactsStore.requestAccess(for: .contacts, completionHandler: { (granted, error) in if granted { completionHandler(.granted) } else { completionHandler(.denied) } }) } This

How can watchOS 2.2 app determine if its paired iPhone has switched to another Apple Watch?

依然范特西╮ 提交于 2019-12-23 21:42:43
问题 I'm trying to support the new feature for pairing with multiple watches in my iOS 9.3/watchOS 2.2 app. It seems to be working well, except that I can't figure out how the watchOS app can determine if the paired iPhone has been switched to another Apple Watch. The docs say that the WCSession stays activated from the perspective of the WatchKit extension throughout the switching lifecycle, and from my testing in Xcode, it seems that the watch session reports that the iPhone is also reachable

ios 9.3 UIImagePickerController memory issue

三世轮回 提交于 2019-12-22 17:20:52
问题 Screenshot UIImagePickerController was working very well on iOS 9.2, with a memory usage of 19m in my iPhone. Since iOS 9.3, I noticed that the memory usage is increasing to 300m and the application crashes. my code: import UIKit import MobileCoreServices class ViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate { override func viewDidLoad() { super.viewDidLoad() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } func

Xcode 7.3 missing Private Frameworks

妖精的绣舞 提交于 2019-12-22 09:58:21
问题 I recently upgraded my Xcode to version 7.3. When I compile my exisiting project I get this error message: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/PrivateFrameworks' As per this post, private frameworks have been removed with Xcode 7.3. Any suggestions as to potential solutions? 回答1: According to the Xcode 7.3 release notes: The Apple private frameworks have been removed from the iOS