实例化一个UITableView对象

2025年03月24日 11:48
有1个网友回答
网友(1):

UITableView *my = [[UITableView alloc]initWithFrame:<(CGRect)frame> style:<(UITableViewStyle)style>];
my.delegate = self;
my.dataSource = self;
首先需要分配空间设置表格类型
然后需要设置两个必须的委托对象。