UITableView Delegate Methods


 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 
{
              // return number of sections in Table;
              return 2;
}
  
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
 {
           // Return the number of rows in the section.
              return 2;
}


- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexation
{

             //   this method calls when row in row is selected 
                for example on row selected you want to push to new view
}

- (NSIndexPath *)tableView:(UITableView *)tableView willDeselectRowAtIndexPath:(NSIndexPath *)indexPath
{
              // this method call when row is deselect the row...
 } 

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
{

}


- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{


}

0 comments: