#import "personController.h"
#import "UserCenterTableViewCell.h"
#import "userItemCell1.h"
#import "userItemCell2.h"
#import "userItemCell3.h"
#import "userItemCell4.h"
#import "userItemCell5.h"
@interface personController ()<UITableViewDataSource,UITableViewDelegate>
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@end
@implementation personController
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor redColor];
self.selectTable.tableFooterView.backgroundColor = [UIColor redColor];
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
if (indexPath.section == 0) {
if (indexPath.row == 0) {
userItemCell1 *cell = [userItemCell1 cellWithTableView:tableView];
return cell;
} else if (indexPath.row == 1)
{
userItemCell2 *cell = [userItemCell2 cellWithTableView:tableView];
return cell;
}else
{
userItemCell3 *cell = [userItemCell3 cellWithTableView:tableView];
return cell;
}
}
else if(indexPath.section == 1)
{
userItemCell4 *cell = [userItemCell4 cellWithTableView:tableView];
return cell;
}
else
{
userItemCell5 *cell = [userItemCell5 cellWithTableView:tableView];
return cell;
}
}
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
return nil;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
if (section == 1 || section == 2) {
return 1;
}
else
{
return 3;
}
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 3;
}
@end
发表回复