Guest User

Untitled

a guest
Aug 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. Group Cells in TableView
  2. // Customize the number of sections in the table view.
  3. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
  4. return 5;
  5. }
  6.  
  7.  
  8. // Customize the number of rows in the table view.
  9. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  10. return 10;
  11. }
  12.  
  13. -(void)setListTableView
  14. {
  15. mytableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 59, 319, 358) style:UITableViewStyleGrouped];
  16. mytableView.separatorStyle = UITableViewCellSeparatorStyleSingleLineEtched;
  17. mytableView.backgroundColor = [UIColor clearColor];
  18. mytableView.opaque = NO;
  19. mytableView.delegate = self;
  20. mytableView.dataSource = self;
  21. mytableView.scrollEnabled = YES;
  22. mytableView.scrollsToTop = YES;
  23. [self.view addSubview:mytableView];
  24. }
Add Comment
Please, Sign In to add comment