我正在尝试重新加载一个tableViewCell,但每次我都滚动到顶部...我不是在添加或删除单元格,我只想更改所选单元格的颜色.
这是我在cellForRowAtIndexPath中所做的:
SMPChoiceViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ChoiceCell" forIndexPath:indexPath];
SMPChoice *choice = self.choices[indexPath.row - 1];
cell.choiceTextLabel.text = choice.text;
if ([self.selectedChoices indexOfObject:choice] != NSNotFound) {
cell.choiceTextLabel.textColor = [UIColor purpleColor];
} else {
cell.choiceTextLabel.textColor = [UIColor blackColor];
}
Run Code Online (Sandbox Code Playgroud)
这就是我在didSelectRowAtIndexPath中所做的
if ([self.selectedChoices indexOfObject:choice] != NSNotFound) {
[self.selectedChoices removeObject:choice];
} else {
[self.selectedChoices addObject:choice];
}
CGPoint offSet = [tableView contentOffset];
[tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
[tableView setContentOffset:offSet animated:NO];
Run Code Online (Sandbox Code Playgroud)
但它只是跳,任何建议?
PS我跟着这个线程,但它没有解决我的问题调用reloadRowsAtIndexPaths删除tableView contentOffset
我已经上传了几个应用程序,几次到TestFlight,它一直有效.有了这个新的应用程序,我也做了同样的事情,它出现在测试人员的设备上:

问题是,当他们尝试下载时,会显示以下消息:

当他们点击应用而不是安装时,它看起来像这样:

"有趣"部分是当你点击testflight中的任何其他应用程序时,它看起来像最后一张图片,但它会让你下载它.
有谁知道发生了什么以及如何解决它?谢谢你的时间
PS
我尝试了以下解决方案,但没有改变: