问题标签 [uicontextualaction]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
199 浏览

ios - UIContextualAction 不在 iOS 12.4 上显示图像,该代码适用于 iOS 13.4

在此处输入图像描述

谁能解释如何解决这个问题?

这是它现在在 iPhone X (iOS 12.4) 上向我展示的内容

这是我下面的代码

0 投票
1 回答
81 浏览

uitableview - UITableView -> trailingSwipeActionsConfigurationForRowAt -> UIContextualAction.image not centered correctly for rowHeights < 50

I have a UITableView that has a different row height for the last column. Each row has UIContextualAction to "mark as favourite" and "delete", represented by image (icons). It seams that when the row height is smaller then 50, the UIContextualAction.image placement is corrupted and no longer centered correctly:

first row smaller then 50 height

0 投票
1 回答
167 浏览

ios - iOS 12 UIContextualAction 图像无法推断图像颜色

在 iOS 12 UIContextualAction 中不会推断图片的颜色。虽然它适用于 iOS 13 及更高版本。我已经尝试了图标的所有渲染模式,但仍然无法正常工作。

在此处输入图像描述 在此处输入图像描述

0 投票
1 回答
12 浏览

ios - Swift UISwipeActionsConfiguration 和 segue

我添加了leadingSwipeAction “编辑”按钮。但是,当我在模拟器中按下“编辑”按钮时,应用程序崩溃并在 **prepare(for:sender:)** 方法中显示“线程 1:信号 SIGBART”。

我看到了类似的问题,但他们的解决方案没有帮助。我是新手,不明白问题出在哪里。

}