iOS 8 UITableViewRowAction: Swipe Left, Images?

后端 未结 3 2196
青春惊慌失措
青春惊慌失措 2021-02-08 16:56

I\'ve just come across this new API on iOS8. I cannot however find any solution on if it is possible to use images instead of text and to allow left and right swipe? Is this eve

3条回答
  •  半阙折子戏
    2021-02-08 17:56

    in Swift it would be:

    deleteAction.backgroundColor = UIColor(patternImage: UIImage(named:"sample")!)
    

提交回复
热议问题