Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a checkmark UIButton in iOS?

Tags:

ios

iphone

ipad

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

like image 353
user403015 Avatar asked May 16 '11 16:05

user403015


1 Answers

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.

like image 113
omz Avatar answered Oct 03 '22 12:10

omz