Guest User

Untitled

a guest
Apr 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. NSString *CellIdentifier = @"IndividualContractWithResult";
  2. UITableViewCell *cell;
  3.  
  4. ...
  5.  
  6. cell = [thisTableView dequeueReusableCellWithIdentifier:CellIdentifier];
  7.  
  8. if (cell == nil)
  9. {
  10. // TODO: improve code by avoiding the view controller creation
  11. UIViewController *vc = [[UIViewController alloc] initWithNibName:@"IndividualContractWithResult" bundle:nil];
  12. cell = (IndividualContractWithResult_Cell *) vc.view;
  13. [vc release];
  14. }
Add Comment
Please, Sign In to add comment