I am planning to start an iPad app…
In my app there will be 3 UITabels connected to SQLite3. How can i connect all the 3 tables together and control the data in tables with each other?
For Example
IF I have 3 tables
Tabel 1: Name;
Tabel2: Country;
Tabel3: Gender;
The table name displays a large data of different name. suppose if a select a name called Alex . the other name should disappear from the list and in the Country table should list only the country name related to Alex(if there is no Alex in China, then China should not appear). the Gender table should only list Male.
In the same way if i Select USA. the other name Country table should disappear and should list only related names in name list. same thing for Gender table too.
Can any one give me some ideas or Suggestions please.
Any examples or Links are highly appreciated.
While you can implement such behavior manually by using the
UITableViewDelegateandUITableViewDataSourceprotocols, this seems like the perfect example to useCoreDatainstead of manually building complex models.CoreData is a technology developed by apple to simplify the creation of apps that rely on such relatively simple data relationships.
http://developer.apple.com/library/ios/#DOCUMENTATION/DataManagement/Conceptual/iPhoneCoreData01/Introduction/Introduction.html