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)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)