小编mte*_*t88的帖子

reloadRowsAtIndexPaths时保持偏移量

我正在尝试重新加载一个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

reload uitableview ios

7
推荐指数
2
解决办法
3346
查看次数

TestFlight不可用

我已经上传了几个应用程序,几次到TestFlight,它一直有效.有了这个新的应用程序,我也做了同样的事情,它出现在测试人员的设备上:

在此输入图像描述

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

在此输入图像描述

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

在此输入图像描述

"有趣"部分是当你点击testflight中的任何其他应用程序时,它看起来像最后一张图片,它会让你下载它.

有谁知道发生了什么以及如何解决它?谢谢你的时间

PS

我尝试了以下解决方案,但没有改变:

app-store ios testflight

1
推荐指数
1
解决办法
3860
查看次数

标签 统计

ios ×2

app-store ×1

reload ×1

testflight ×1

uitableview ×1