0

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?
1
  • Assuming that notesarray gives you array of dictionaries, [dictionaryWithValuesForKeys] Returns a dictionary built from values obtained for the specified keys. Commented Jun 29, 2011 at 3:47

1 Answer 1

1

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:

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.