Guest User

Untitled

a guest
May 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. (void)awakeFromNib {
  2. [super awakeFromNib];
  3.  
  4. self.name = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 50)];
  5.  
  6.  
  7. [self addSubview:self.name];
  8.  
  9. self.table.delegate = self;
  10. self.table.dataSource = self;
  11. self.table.backgroundColor = [UIColor blackColor];
  12.  
  13. [self.view addSubview:self.table];
  14.  
  15. (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  16.  
  17. NewTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];
  18.  
  19.  
  20. if (cell == nil) {
  21. cell = [[NewTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIdentifier];
  22. }
  23.  
  24.  
  25. cell.backgroundColor = [UIColor blackColor];
  26.  
  27. cell.name.text = [_familyDetails objectAtIndex:indexPath.row];
  28.  
  29. return cell;
Add Comment
Please, Sign In to add comment