0
我想删除iOS上ListView的默认行为 - 突出显示点击项目。我试着设置背景颜色。它并没有解决。我发现在GitHub上https://github.com/NativeScript/NativeScript/issues/455 这个问题,但是我不知道如何在角nativescript删除ListView项目突出显示Nativescript Angular iOS
我想删除iOS上ListView的默认行为 - 突出显示点击项目。我试着设置背景颜色。它并没有解决。我发现在GitHub上https://github.com/NativeScript/NativeScript/issues/455 这个问题,但是我不知道如何在角nativescript删除ListView项目突出显示Nativescript Angular iOS
实现这一设置itemLoading事件在这样的列表视图:
<ListView [items]="items" (itemLoading)="onItemLoading($event)">
然后在您的打字稿,定义你的onItemLoading事件是这样的:
onItemLoading(args: ItemEventData) {
const iosCell = args.ios;
iosCell.selectionStyle = UITableViewCellSelectionStyle.None;
}
仅供参考 - 我测试了这对nativescript棱角版本3.1.0和tns-core-modules版本3.3