#import "ViewController.h"
@interface ViewController ()<UITableViewDelegate,UITableViewDataSource>
{
UITableView * rootTable;
UITableView * tableView1;
NSMutableArray * ChildArr;
}
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self initView];
ChildArr = [[NSMutableArray alloc]initWithObjects:@"苹果",@"栗子",@"香蕉",@"菠萝",nil];
self.navigationItem.title = @"TwoTableView";
}
-(void)initView
{
rootTable = [[UITableView alloc]initWithFrame:CGR