Skip to content

Instantly share code, notes, and snippets.

@peerasak-u
Created May 24, 2014 06:31
Show Gist options
  • Select an option

  • Save peerasak-u/8ce40fb0efbd98a86887 to your computer and use it in GitHub Desktop.

Select an option

Save peerasak-u/8ce40fb0efbd98a86887 to your computer and use it in GitHub Desktop.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
[cell.imageView setImage:[UIImage imageNamed:@"radiobutton-unchecked"]];
[cell.imageView setHighlightedImage:[UIImage imageNamed:@"radiobutton-checked"]];
[cell.label setText:_dataArray[indexPath.row][@"text"]];
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment