Many applications use Core data for iOS devices, others utilize frameworks like fmdb. But there are also people that write SQLite access from scratch. The comes the answer - how do you cache prepared statements (I will not discuss here why we cache prepared statements)?
Well - I have implemented 2 methods:
1) Using C syntax to maintain array of sqlite_stmt* 2) Using NSPointerArray* to store sqlite_stmt* that are prepared First approach has it’s advantages in regards of using older SDKs (NSPointerArray is available from iOS 6.
This article continues the series for creating a web service consuming program on your mobile device. In the previous article I have showed you how to create Server part (web service) on Geronimo and how to access it from Android app. Now we shall do the same with iOS application.
So what do you need.
Mac with OSX XCode IDE with iOS SDK Code and applications (server, IDE, code) from previous article in order to run the server So lets start.
I used to fight for a while with strange issue. I am using Singleton in my iOS application to hold Session information. Unfortunately when using NSMutableArrayList to hold stack of current objects - the references become empty at some point and there is a warning like:
warning: Attempting to create USE_BLOCK_IN_FRAME variable with block that isn't in the frame.
While searching on the net - I have mentioned one comment about using singletons - well - this was my lead.