1

I have looked around but can't find a definitive answer. I need to fade in and out a couple of UIBarButtonItems, simple as that. How can I?

If I can't fade a UIBarButtonItem in anyway whatsoever, then what could I do as an alternative?

halfer
  • 19,824
  • 17
  • 99
  • 186
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
  • I believe you will find your answer at this post: http://stackoverflow.com/questions/815784/is-it-possible-to-use-core-animation-to-fade-out-a-uibarbuttonitem?rq=1 – JiuJitsuCoder Jul 08 '12 at 18:16

1 Answers1

1

You can't fade UIBarButtonItems themselves because they are not views.
But you can init a plain UIBarButtonItem with a custom view (UIButton is the best) and fade that one. For that you need to store your buttons somewhere.

yinkou
  • 5,756
  • 2
  • 24
  • 40