lundi 19 octobre 2015

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 ?

Aucun commentaire:

Enregistrer un commentaire