Table view with cell

View.h File

#import "DefaultTableViewCell.h"

take delegetes
@interface DefaultSideTableViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>


View.m File

#pragma marl - UITableView Data Source

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    NSLog(@"ItemList %@",ItemList);
    if (tableView == rearTableView)
    {
        return ItemList.count;
    }
    else
    {
        return ItemList.count;
    }
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    DefaultTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    NSLog(@"ItemList %@",ItemList);
    if (tableView == rearTableView)
    {
        
        
    }
    if (tableView == ProfileTableView)
    {
        
        
    }
    return cell;
}

Comments