sql - Reference multiple sqlite tables on iPhone? -
I still do not have enough "stack overflu fu", the last answer is found for this.
The data of one of my apps is in the SQLite database and I used the sample SQLiteBooks as the primary motivation - however, SQLiteBooks has only one table and a single view, I have one in a tab bar More than (related) tables have been viewed as separate views - e.g. Some issues with sample code: cookbooks, recipes, materials, utensils etc.
1) It appears that the sample code starts at the very beginning (DIDFinishLaunching in the application: when I am tilting to see DIDLoad :)
2) static SQL Query strings require different classes (on the other hand, they are usually only different to reach the table, so I can use "?" In the fixed string and then bind the table ID Need?)
3) If I Elements follow the lead of the sample code, which uses plists as the data store, I think the data source of "pre-creation" memory too much has not yet been seen in the tab.
Does any person get the best practice to indicate that how many examples of single class are defined by sampling while keeping performance low and low memory?
Can not you use? To bind table names, only the value on the query.
I recommend that you take a look at it, which is a SQLite cover in Objective-C
With it, you can easily distinguish objects from database inquiries ( Any kind of home grown ORM).
Some active activation implementations are in C, which you can see, but I have not used them.
Comments
Post a Comment