1 // 数据总组数2 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView; // Default is 1 if not implemented3 4 // 每组数据的行数5 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;6 7 // 每一行显示的内容8 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
1 // 数据源2 @PRoperty(nonatomic, assign) id<UITableViewDataSource> dataSource;
1 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
1 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
新闻热点
疑难解答