반응형
storyboard에서 next view로 push 연결 후
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"TableCellIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
[[cell textLabel] setText:@"item"];
return cell;
}
CellIdentifier의 값은 TableCell Attribues inspector > Table View Cell > Identifier의 값 사용
'Dev::iOS' 카테고리의 다른 글
Get Documents, Temporary, Cache Directory Path (0) | 2012.03.15 |
---|---|
특정 위치로 navigation 이동 (0) | 2012.03.09 |
현재 단말기에 세팅되어 있는 언어 가져오기 (0) | 2012.02.07 |
locale (0) | 2012.02.07 |
warning:Local declaration of 'var' hides instance variable (0) | 2012.02.03 |