I m retrieving data from sqlite table and filling it in tableview
//get notes saved to database
NSString *selectQuery=@"select * from ATTACHABLEITEM where ATYPE='notes'";
NSArray *notesarray=[delegate.database executeQuery:selectQuery];
[table dictionaryWithValuesForKeys:notesarray];
this is going wrong.what is the right way to do so?
Table views are a staple of iOS development. You should take time to learn how to use them.
You will find the following resources helpful:
Reference
Reference
Essentially, you create a table view and set delegate and datasource objects which respond to certain methods. These methods pertain to the configuration and content of the table view. The datesource is “consulted” for what data to display at a given index.