Confused
Confused

Reputation: 3926

UIButton properties for UIBarButtonSystemItemDone

I want to create a UIButton same like UIBarButtonSystemItemDone.

That is, my UIButton should looks like the following image

enter image description here

Can i make the same effects (rounded corner, shading of colors, size) on my UIButton?

Share your code please..

Upvotes: 0

Views: 920

Answers (1)

visakh7
visakh7

Reputation: 26400

You can make a custom button and provide an image for it.

UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setImage:urImage forState:UIControlStateNormal];

Upvotes: 1

Related Questions