我遇到了一个专门在Iphone X中出现的错误。我创建了一个预输入下拉列表,该下拉列表在andriod和除iphoneX之外的所有ios手机中均可正常运行。如您所见,我正在使用radAutoCompleteTextView键入信息,然后我应该下拉菜单中显示这些项目。
当我执行sugustMode时:建议使用正确的数据附加输入文本,但未显示任何下拉列表。
此外,当我导航到该页面时,它会出现在控制台中: 控制台日志文件:///node_modules/nativescript-ui-autocomplete/ui-autocomplete.js:1055:0:圆圈为:UIExtendedSRGBColorSpace 0.8 0.8 0.8 1
<GridLayout row="1" col="2" colSpan="2" class="home-panel">
<RadAutoCompleteTextView
*ngIf="loaded"
class="add-work-order-dropdown"
completionMode="Contains"
android:style="margin-top:0; height:36.5"
[items]="dropDown"
suggestMode="Suggest"
displayMode="Plain"
(textChanged) = "reset($event)"
hint="Search Your data"
(didAutoComplete)="onDidAutoComplete($event)"
>
<SuggestionView tkAutoCompleteSuggestionView>
<ng-template tkSuggestionItemTemplate let-item="item">
<StackLayout
class="token-display"
orientation="vertical"
padding="20"
>
<Label [text]="item.text"
></Label>
</StackLayout>
</ng-template>
</SuggestionView>
</RadAutoCompleteTextView>
</GridLayout>
dropDown: ObservableArray<TokenModel> = new ObservableArray<
TokenModel
>();
loaded = false;
getMyUserLocationData() {
this.loaded = false;
this.mockService
.getData()
.subscribe(mydata => {
this.data = mydata;
for (let i = 0; i < this.data.length; i++) {
this.dataInformation = this.data[i].display;
this.dataCity.push(this.dataInformation);
this.dropDown.push(
new TokenModel(this.data[i].display, undefined)
);
}
this.loaded = true;
});
}