Home > Software engineering >  Swift UIButton with questionmark
Swift UIButton with questionmark

Time:08-07

Is it possible to add this button type of button to my project: Image

I remember I've heard about bezel, but not sure if that is it?

CodePudding user response:

Just create a UIButton, and set it's cornerRadius:

button.layer.cornerRadius = 0.5 * button.bounds.size.width
button.clipsToBounds = true
button.backgroundColor = UIColor.gray
  • Related