Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- static NSString *MyIdentifier = @"MyIdentifier";
- CustomCells *cell = (CustomCells *)[tableView dequeueReusableCellWithIdentifier:MyIdentifier];
- if (cell == nil) {
- cell = [[[CustomCells alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];
- }
- ClassObj *appdelegate = (ClassObj *)[[UIApplication sharedApplication] delegate];
- // Configure the cell
- ClassObj *itemAtIndex = (ClassObj *)[appdelegate.allClass objectAtIndex:indexPath.row];
- [cell setData:itemAtIndex];
- NSLog(@"%d", [itemAtIndex.building integerValue]);
- return cell;
- }
Add Comment
Please, Sign In to add comment