didUpdateValueFor callback function of Core Bluetooth doesn’t fire

I am using Core Bluetooth in an iOS app using Xcode and Swift to get data from a Muse 2. The process works except the didUpdateValueFor callback function doesn’t fire. The didUpdateNotificationStateFor callback function fires, and when I print the characteristics, they show that they are notifying. I have done the same thing with a […]

By Daniel Brower
Published
Categorised as core-bluetooth, ios, swift, xcode

Why is CKModifyRecordsOperation to batch delete records in CloudKit not deleting records?

I have code to batch delete records from the private database in CloudKit, but it’s not working. (I also noticed that the records I saved are not remaining.) I am using an actual iPhone 8 with an actual Apple ID I personally use, not a developer account. I get the same results with an iPhone […]

By Daniel Brower
Published
Categorised as ckmodifyrecordsoperation, cloudkit, ios, swift, xcode

How do I track in the background in iOS a user walking and calculate the distance traveled so far using Swift and Xcode?

How do I track in the background in iOS a user walking in Apple MapKit or Google Maps Platform for iOS and calculate the distance traveled so far using Swift and Xcode? I have tried using MapKit. The problem I get is that when the iOS device is locked, Core Location stops tracking the device. […]

By Daniel Brower
Published
Categorised as core-location, google-maps-sdk-ios, ios, mapkit, swift

How do I convert an audio mp3 file to audio type raw in iOS using Swift?

What is the most effective way to convert an audio mp3 file to audio type raw with the following characteristics in iOS using Swift? single-channel (monaural) little-endian unheadered 16-bit signed PCM sampled at 16000 Hz Source: Ios

By Daniel Brower
Published
Categorised as audio, audio-converter, ios, mp3

Core Data error switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead

I am getting this CoreData error. I have no idea why I’m getting this error. I’m not using any Transformable types. I see nothing in my code indicating that I’m using transformable properties. I let Xcode set up CoreData by selecting the Use Core Data option when I created my project. The other similar questions […]

By Daniel Brower
Published
Categorised as core-data, ios, swift, transformable

TLSphinx cmusphinx pocketsphinx Hypothesis result text empty string score negative (-) number

I ran the sample code in the readme file at tryolabs/TLSphinx README.md, and the result of the text property of the Hypothesis is an empty string, while the score property is a negative number around the range of -681. Why is the text empty? Why is the score so low? How would I fix this […]

By Daniel Brower
Published
Categorised as cmusphinx, ios, pocketsphinx

How do I convert audio format from mp3 to wav in iOS using Swift?

I am using cmusphinx in iOS using Swift, and cmusphinx uses audio files in wav format, while the files I need to use are in mp3 format. How do I convert audio files of mp3 format to wav format in iOS using Swift? So far I have the following code using AVAssetExportSession from the Apple […]

By Daniel Brower
Published
Categorised as cmusphinx, ios, mp3, swift, wav

How do I refresh recurring reminders in iOS Reminders App when they stop reminding so that they begin reminding again?

I noticed that in iOS Reminders, when I don’t respond to recurring reminders, they stop firing when they are supposed to. The count of those reminders show as red badges on the Reminders icon, and in the Reminders app, the dates show up as red. How would I use code to cause those reminders to […]

By Daniel Brower
Published
Categorised as ekreminder, ios

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq