0
我在下面创建了actionRow并更改了背景。不过,我似乎无法弄清楚如何更改两个UITableViewActionRow
中的字体。我怎样才能改变字体?UITableViewActionRow更改字体
override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? {
// 1
var shareAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Redigér" , handler: { (action:UITableViewRowAction!, indexPath:NSIndexPath!) -> Void in
})
shareAction.backgroundColor = UIColor(rgba: "#C7C7CC")
// 3
var rateAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Slet" , handler: { (action:UITableViewRowAction!, indexPath:NSIndexPath!) -> Void in
})
rateAction.backgroundColor = UIColor(rgba: "#EA4741")
// 5
return [shareAction,rateAction]
}