当我尝试从 xcode 运行 ios 应用程序时获取脚蹼错误日志。
flipper: Desktop failed to provide certificates. Error from flipper desktop:
rsocket::StreamInterruptedException: connection error
Run Code Online (Sandbox Code Playgroud)
应用程序运行顺利,没有发现任何问题。但这个日志每 1 秒就会出现一次。
有什么办法可以解决这个问题吗?

我有一个带有离子头像和带有大文本的离子标签的离子项目。为了在 ion-label 中显示全文,我向 ion-label 添加了一个类“ion-text-nowrap”。它工作正常。但问题是 ion-avatar 自动放置到 ion-item 的垂直中心。我不需要对齐头像垂直对齐中间。我想要那个对齐 ion-item 的左上角。我怎样才能做到这一点?
这是我的代码:
<ion-item>
<ion-avatar slot="start">
<img [src]="img">
</ion-avatar>
<ion-label class="ion-text-nowrap">
<p>{{text}}</p>
</ion-label>
</ion-item>
Run Code Online (Sandbox Code Playgroud) 我们如何处理循环中的异步方法?我在 Angular 程序中遇到问题,我无法处理异步方法。我想等待异步方法。有没有办法在 for 循环中等待异步方法。
这是我的代码:
msg: string[] = [];
filePicked() {
this.msg = [];
this.msg.push("file picked");
const file: File = new File([""], "C:\Users\Arun Girivasan\Downloads\about.jpg");
for (var i = 0; i < 10; i++) {
const reader = new FileReader();
reader.onload = () {
this.msg.push("file loaded successfully");
}
reader.readAsDataURL(file);
this.msg.push(i.toString());
}
Run Code Online (Sandbox Code Playgroud)
html:
<div *ngFor="let m of msg">{{m}}</div>
Run Code Online (Sandbox Code Playgroud)
输出:
file picked
0
1
2
3
4
5
6
7
8
9
file loaded successfully
file loaded successfully
file loaded successfully
file …Run Code Online (Sandbox Code Playgroud) 我想删除离子项目的点击效果。我使用了 --background-activated 和 --ripple-color 但什么也没发生。
.no-click{
--background-activated: transparent;
--ripple-color: transparent;
}
<ion-item class="no-click">
<ion-avatar slot="start">
<img [src]="img">
</ion-avatar>
<ion-label>{{name}}</ion-label>
</ion-item>
Run Code Online (Sandbox Code Playgroud)
如何消除离子项目的点击效果?
ionic4 ×2
angular ×1
filereader ×1
flipper ×1
ionic3 ×1
ios ×1
iphone ×1
react-native ×1
typescript ×1
xcode ×1