Injar
Injar

Reputation: 125

How to make UIBarButtonItem same click effect as UIButton?

How to make UIBarButtonItem with properties(Style: Bordered and Identifier: Custom ) click effect (like the UIButton selected state) ??

Upvotes: 0

Views: 608

Answers (1)

booiljoung
booiljoung

Reputation: 816

UIButton *button = [UIButton button...];
...

UIBarButtonItem *barButtonItem = [UIBarButtonItem initWithCustomView:button];

See apple's documents

Upvotes: 1

Related Questions