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;
新聞熱點
疑難解答