user403015
user403015

Reputation: 7227

How to make a checkmark UIButton in iOS?

I want to make a checkmark UIButton in iOS like the second icon in the enclosed image.

Does Apple provide this checkmark button in the SDK ?

Any suggestion to make a checkmark UIButton ?

Thanks.

enter image description here

Upvotes: 6

Views: 6502

Answers (1)

omz
omz

Reputation: 53561

No, there isn't a built-in checkmark button type. You'll have to use UIButtonTypeCustom and provide your own images for the different control states by calling setBackgroundImage:forControlState:. You could use the UIKit Artwork Extractor tool to get at the original images, but doing so may lead to a rejection.

Upvotes: 10

Related Questions