Eureka: ButtonRow with icon/image?

Created on 6 Jan 2016  路  2Comments  路  Source: xmartlabs/Eureka

How can I have a ButtonRow with both an icon and a title?

Most helpful comment

Fixing the answer above:

let buttonRow = ButtonRow() {
  $0.title = "Button"
}.cellUpdate { cell, row in
  cell.imageView?.image = UIImage(named:"myimage")
}

All 2 comments

Answer:

let buttonRow = ButtonRow() {
  $0.title = "Button"
}.cellUpdate { cell, row in
  cell.imageView?image = UIImage(named:"myimage")
}

Fixing the answer above:

let buttonRow = ButtonRow() {
  $0.title = "Button"
}.cellUpdate { cell, row in
  cell.imageView?.image = UIImage(named:"myimage")
}
Was this page helpful?
0 / 5 - 0 ratings