- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
#warning Potentially incomplete method implementation.
// Return the number of sections.
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
#warning Incomplete method implementation.
// Return the number of rows in the section.
return [(NSSet *)[team valueForKey:@"players"] count];
}
我該如何解決?iOS我收到關於UITableViewDataSource的不完整實施的警告
他們警告你不要忘記從這些函數的返回值。你可以刪除它們。 – Scar
是的,我知道他們是警告@Scar。我該如何糾正它們?我確實返回了一個值,它仍然給我警告。 –
看來我的評論的最後一部分對你是看不見的;) – Scar