iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

Best Cocoa/Objective-C Wrapper Library for SQLite on iPhone

I’m developing for the iPhone and am looking for a good Cocoa/Objective-C library for working with SQLite. I don’t want to use the standard procedural SQLite C API. I see options at sqlite.org under the Objective-C section, but am not sure which is the best in terms of library API design, stability, and functionality. I’d […]

iOS Voip Socket will not run in background

I am getting a VOIP socket to run in the background in an iOS application. My connection works fine, but it won’t wake up when my app goes into the background. If I open the app back up, though, it responds to any messages it got while it was asleep. I set up my stream […]

iOS 5 does not allow to store downloaded data in Documents directory?

I have made an application for my client by keeping target iOS as 4. But since the application still not submitted to Apple store, my client is planning to upgrade it for iOS 5.0. For this I read the guideline from Apple and found that “Only user-generated data or that cannot otherwise be recreated by […]

What is objc_setAssociatedObject() and in what cases should it be used?

In a project I have taken on, the original author has opted to use objc_setAssociatedObject() and I’m not 100% clear what it does or why they decided to use it. I decided to look it up and, unfortunately, the docs aren’t very descriptive about its purpose. objc_setAssociatedObject Sets an associated value for a given object […]

Cocoa Custom Notification Example

Can someone please show me an example of a Cocoa Obj-C object, with a custom notification, how to fire it, subscribe to it, and handle it?

Finding distance from RSSI value of Bluetooth Low Energy enabled device

I am working on Bluetooth low energy concept project. I am getting the RSSI value between 1 and 100. As I move the tag the RSSI value increase as the peripheral moves away from the iPhone and decreases as it moves closer. Can anybody help me to get exact distance between the iPhone and the […]

Managing HTTP Cookies on iPhone

I want to port a python app that uses mechanize for the iPhone. This app needs to login to a webpage and using the site cookie to go to other pages on that site to get some data. With my python app I was using mechanize for automatic cookie management. Is there something similar for […]

Should I use NSUserDefaults or a plist to store data?

I will be storing a few strings (maybe 10-20). I am not sure if I should use NSUserDefaults to save them, or write them out to a plist. What is considered best practice? NSUserDefaults seems like it is less lines of code, therefore quicker to implement. I’d like to add that these string values will […]

NSOperation on the iPhone

I’ve been looking for some concrete scenarios for when NSOperation on the iPhone is an ideal tool to use in an application. To my understanding, this is a wrapper around writing your own threaded code. I haven’t seen any Apple demo apps using it, and I’m wondering if I’m missing out on a great tool […]

UISlider with ProgressView combined

Is there an apple-house-made way to get a UISlider with a ProgressView. This is used by many streaming applications e.g. native quicktimeplayer or youtube. (Just to be sure: i’m only in the visualization interested) cheers Simon