Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Group Cells in TableView
- // Customize the number of sections in the table view.
- - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return 5;
- }
- // Customize the number of rows in the table view.
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return 10;
- }
- -(void)setListTableView
- {
- mytableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 59, 319, 358) style:UITableViewStyleGrouped];
- mytableView.separatorStyle = UITableViewCellSeparatorStyleSingleLineEtched;
- mytableView.backgroundColor = [UIColor clearColor];
- mytableView.opaque = NO;
- mytableView.delegate = self;
- mytableView.dataSource = self;
- mytableView.scrollEnabled = YES;
- mytableView.scrollsToTop = YES;
- [self.view addSubview:mytableView];
- }
Add Comment
Please, Sign In to add comment