"Introduction to HTML and CSS (2016)" was retired on July 31, 2024. You are now viewing the recommended replacement.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Insert multiple row data same time sqlite with json ios

I am trying to insert multiple row data same time to the sqlite database.But for example I have a value.I am getting that from my api.And in this value I have 2000 data.I am just adding 1 row and in that row I Can see 2000 data.

for (NSDictionary *customerDictionary in customerArray) {
            Kart *kart = [Kart customerWithName:[customerDictionary valueForKey:@"adi"]];
            [_kartList addObject:kart];
        }

And I am using FMDB for the sqlite.

Can you give me a suggestion ?How can I add them into the sqlite

2 Answers

any suggestion

I have no experience using db's in iOS, but I did some googling and found a couple stackoverflow threads that might help. neither of these help, search for "add json data to sqlite objective-c". There were lots of pertinent looking results.

Sorry I can't be of more help!

http://stackoverflow.com/questions/5070655/from-php-mysql-json-to-ios-objective-c-sqlite

http://stackoverflow.com/questions/9383279/objective-c-add-json-response-to-sqlite-db

actually I looked them too before the ask question.