ios10

Swift2.3 code for Beacon detection

故事扮演 提交于 2019-12-29 04:57:08
问题 We are in advanced stages of developing a Swift2.2 app and hence have decided to migrate to 2.3 in the interim and do the full Swift 3 migration later. However we are unable to get beacon detection working post conversion to Swift 2.3. The method "didRangeBeacons" keeps returning an empty array. The same code was working in Swift 2.2 so we know we have all the permissions etc in place. Also if we open the "Locate" app on the same ipad then our app also starts returning data in

Continuous speech recogn. with SFSpeechRecognizer (ios10-beta)

我的梦境 提交于 2019-12-29 03:13:05
问题 I am trying to perform cont. speech recognition using AVCapture on iOS 10 beta. I have setup captureOutput(...) to continuously get CMSampleBuffers . I put these buffers directly into SFSpeechAudioBufferRecognitionRequest which I set up previously like this: ... do some setup SFSpeechRecognizer.requestAuthorization { authStatus in if authStatus == SFSpeechRecognizerAuthorizationStatus.authorized { self.m_recognizer = SFSpeechRecognizer() self.m_recognRequest =

Navigationbar coloring in ViewWillAppear happens too late in iOS 10

半城伤御伤魂 提交于 2019-12-28 11:45:22
问题 I am facing a weird bug, that happens only on iOS 10. I have a application with several screens, and each screen colors the navigationBar in viewWillAppear . So when you go to the next screen, it will be properly colored. However, when testing on iOS 10 I suddenly see the following behaviour when going back to a previous screen: When the previous screen appears the navigationBar still has the color of the previous screen and then flashes to the proper color. It almost looks like

openURL: deprecated in iOS 10

自古美人都是妖i 提交于 2019-12-28 02:49: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:/

Swift 3 present view from appdelget when application was off

断了今生、忘了曾经 提交于 2019-12-25 18:36:26
问题 when the user opening the push notification i present view from appdelget by this code func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { application.applicationIconBadgeNumber = 0; // Clear badge when app is launched if UserDefaults.standard.bool(forKey: "PushOFF") == false { registerForRemoteNotification() } else { UIApplication.shared.unregisterForRemoteNotifications() } return true } func

Pixelated images on iOS10 when building with Xcode 10

99封情书 提交于 2019-12-25 17:45:22
问题 According to my test I only face this issue when making Archive and uploading it to Fabric or iTunesConnect. It's OK in simulator and on real device in debug. I tried both pdf and png. And I tried to change compression type in assets catalog. Archive on the left, Debug on the right 回答1: Instructions for creating ButtonBarItem images create a PDF file with the dimensions 22 x 22 draw the content with vector tools (do not embedd images into the PDF) use a stroke width of 1pt or 1.5pt drag &

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

unable to have a unique ios device, as advertising identifier returned as 00000000-0000-0000-0000-000000000000 after ios 10

时光怂恿深爱的人放手 提交于 2019-12-25 13:23:30
问题 I used to use apples advertising identifier as the Unique device ID key, to keep a track of users device, But with upgrade to iOS 10 and limit ad tracking returning IDFA as 00000000-0000-0000-0000-000000000000 , I am unable to maintain the device records, Is there any other replacement which I can use for device id to be stored unique to a user as he signs up. 回答1: As per my understanding of your requirement your best option is: Identifier for Vendor (IDFV) Identifier for Vendor (IDFV) change

unable to have a unique ios device, as advertising identifier returned as 00000000-0000-0000-0000-000000000000 after ios 10

泪湿孤枕 提交于 2019-12-25 13:23:22
问题 I used to use apples advertising identifier as the Unique device ID key, to keep a track of users device, But with upgrade to iOS 10 and limit ad tracking returning IDFA as 00000000-0000-0000-0000-000000000000 , I am unable to maintain the device records, Is there any other replacement which I can use for device id to be stored unique to a user as he signs up. 回答1: As per my understanding of your requirement your best option is: Identifier for Vendor (IDFV) Identifier for Vendor (IDFV) change

iOS 10 - didRegisterForRemoteNotificationsWithDevice only called the first time

此生再无相见时 提交于 2019-12-25 08:47:47
问题 I'm having a problem where didRegisterForRemoteNotificationsWithDevice only gets called the first time I call registerForRemoteNotifications after reinstalling the app, on iOS 10. What's happening: after uninstalling the app and then running the app in debug from XCode, I tap "allow" on the in-app popup and I do get my log message for "did register for remote notifications with device token!", and I get a device token. This makes me hesitantly think that my certificate / provisioning profiles