草庐IT

UIContextualAction

全部标签

ios - UIContextualAction 图标和文本对齐

在测试我们的应用程序时,我们遇到了一个有趣的错误。我们的表格中有一些滑动操作,配置如下:letretryAction=UIContextualAction(style:.destructive,title:"Remove")retryAction.image=UIImage(named:"iconUploadRemove")letretryAction=UIContextualAction(style:.normal,title:"Retry")retryAction.image=UIImage(named:"iconUploadRetry")由于我们设置了图片,用户在表格行上滑动时通
12