I am trying out FMDB and it looks like it will work perfectly for me IF I can get my FMResultSet turned into an NSMutableArray.
How would I accomplish this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The sample code for FMDB illustrates pretty clearly how
FMResultSetworks. You iterate over the rows in the result set by calling thenextmethod on each iteration. Inside the loop you use the data accessor methods to retrieve the data per column for the current row. If you want to turn this into an array, you have to do this manually. Like this:As you see, I am assuming that you have built a custom
Recordclass that represents a record in your database table. You could also work with a dictionary, of course.