Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (void)awakeFromNib {
- [super awakeFromNib];
- self.name = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 50)];
- [self addSubview:self.name];
- self.table.delegate = self;
- self.table.dataSource = self;
- self.table.backgroundColor = [UIColor blackColor];
- [self.view addSubview:self.table];
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
- NewTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
- if (cell == nil) {
- cell = [[NewTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIdentifier];
- }
- cell.backgroundColor = [UIColor blackColor];
- cell.name.text = [_familyDetails objectAtIndex:indexPath.row];
- return cell;
Add Comment
Please, Sign In to add comment