How to tick UIButton in iOS?

I want to make a UIButton mark in iOS, as the second icon in the attached image.

Does Apple provide this checkmark button in the SDK?

Any suggestion to tick UIButton?

Thanks.

enter image description here

+6
source share
1 answer

No, you do not have a built-in button type. You will need to use UIButtonTypeCustom and provide your own images for different control states by calling setBackgroundImage:forControlState: You can use the UIKit Artwork Extractor tool to get the original images, but this can lead to failure.

+10
source

Source: https://habr.com/ru/post/888242/


All Articles