mardi 2 décembre 2014

How to Retrieve Sqlite Database Data and display In UItableview In iOS 7

I am trying to connect Sqlite database in iOS 7, can anyone help me to find the answer??? Give some example links...




  • (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath object:(PFObject *)object { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if(cell==nil){ cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier]; }

    _ListArray = [object objectForKey:@"content"]; NSLog(@"OBJECT = %@",_ListArray); NSString *cellValue = [NSString stringWithFormat:@"%@", [_ListArray objectAtIndex:indexPath.row]];


    cell.textLabel.text = cellValue;


    if(refresh "; List = [NSString stringWithFormat:@"%@%@%@", List, br, cell.textLabel.text]; NSLog(@"%@",List); refresh ++; }

    cell.accessoryType =UITableViewCellAccessoryDisclosureIndicator;


    return cell; }






Aucun commentaire:

Enregistrer un commentaire