cell侧滑显示多个按钮(Swift)

cell侧滑显示多个按钮(Swift),第1张

概述func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? { let row = UITableViewRowAction.init(style: UITableViewRowActionStyle.De
func tableVIEw(tableVIEw: UItableVIEw,editactionsForRowAtIndexPath indexPath: NSIndexPath) -> [UItableVIEwRowAction]? {        let row = UItableVIEwRowAction.init(style: UItableVIEwRowActionStyle.Default,Title: "删除") { (action,indexPath) in                        print("此处写删除业务逻辑")        }                let rowsec = UItableVIEwRowAction.init(style: UItableVIEwRowActionStyle.Default,Title: "标记") { (action,indexPath) in            print("此处写标记业务逻辑")        }        let arr:Array = [row,rowsec]                rowsec.backgroundcolor = UIcolor.orangecolor()        return arr    }
总结

以上是内存溢出为你收集整理的cell侧滑显示多个按钮(Swift)全部内容,希望文章能够帮你解决cell侧滑显示多个按钮(Swift)所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1075329.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存