2017-09-19 26 views

回答

2

实现这一设置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