Dev::iOS

Table view -> Next view

bluemong 2012. 2. 28. 17:20
반응형

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 allocinitWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];

    }

    [[cell 
textLabelsetText:@"item"];

    return cell;

}


CellIdentifier의 값은 TableCell Attribues inspector > Table View Cell > Identifier의 값 사용