Skip to content

Instantly share code, notes, and snippets.

@pratikshabhisikar
Created February 20, 2012 10:54
Show Gist options
  • Select an option

  • Save pratikshabhisikar/1868767 to your computer and use it in GitHub Desktop.

Select an option

Save pratikshabhisikar/1868767 to your computer and use it in GitHub Desktop.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"%@",dic_txt);
static NSString *CustomCellIdentifier = @"CustomCellIdentifier ";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: CustomCellIdentifier];
if (cell == nil)
{
[[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
cell=self.tvcell;
self.tvcell=nil;
}
txt.tag=[[NSString stringWithFormat:@"%d%d",indexPath.section,indexPath.row ] intValue];
txt.text=[dic_txt valueForKey:[NSString stringWithFormat:@"%d^%d",indexPath.section,indexPath.row]];
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment