Skip to content

Instantly share code, notes, and snippets.

@cpreston
Last active May 20, 2016 15:08
Show Gist options
  • Save cpreston/11090724 to your computer and use it in GitHub Desktop.
Save cpreston/11090724 to your computer and use it in GitHub Desktop.
basic cellForRowAtIndexPath method
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"myCell"];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"myCell"];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
}
cell.textLabel.text = self.justCourseNamesArray[indexPath.row];
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment