[英]When the button in TableView cell pressed, how do I know the button of which row of cell pressed?
[英]How can I flip an entire Tableview when a button is pressed in swift?
我在視圖控制器中有一個tableView和一個按鈕。 當按下按鈕時,來自單元格的數據將被其他文本更新。 我想向單元格添加翻轉動畫,因此當按下按鈕時,單元格翻轉,並且來自單元格的數據也發生了變化。 我的問題是我不知道如何添加翻轉單元動畫。
誰能給我一個關於如何在單元格上執行翻轉動畫的提示嗎?
謝謝你,祝你有美好的一天!
UIView.transition(with: /* your tableview */,
duration: 0.5,
options: .transitionFlipFromLeft,
animations: nil,
completion: nil)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.