Custom button in navigation bar does not work

Go To StackoverFlow.com

0

I have added a custom button (subclass UIButton) to my navigation bar but the button does not change states when clicked.

The button is configured correctly as it does work in, for example, a table view.

All advice is welcome.

2009-06-16 18:46
by Bart Jacobs


0

I got it working. What I forgot to implement was the method to change the button selection states.

2009-06-17 08:17
by Bart Jacobs


0

Have you tried subclassing UIBarButton instead of UIButton?

2009-06-16 18:49
by Dan Lorenc
I don't think UIBarButton is a public class in UIKit. It isn't documented in Apple's documentation - Bart Jacobs 2009-06-16 19:37
Ads