- (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