Animating a UIBarButtonItem or a layer above it
Well I have a screen (view controller to be more literal) that has a bunch of different views besides the most commonly used one. The way the user accesses these accessory views is by taping on any of the toolbar buttons that I have in different regions of the display. Now when he is in one of the accessory views I have made sure that the leftmost corner button takes him back to the main view. This button also shows the current day the player is in (take it as a turn based game) as this was the most obvious place to put the back link to so that I wouldn't lose more screen estate.
However as I was testing the game I noticed that it may not be obvious that this is the path back so I want to make this button start to blink/bloom whatever through some animation when the user switches to an accessory view. Now I know how to create animations, but there are two problems that I face:
1. I don't see a way to access the drawing layer of the UIBarButtonItem or it's view (if it has one) which is necessary for me to even do some animations.
2. If I put a second transparent view on top of this button and then animate that one (works), then I lose the button functionality as the view gets all the touches and doesn't pass them on to the button.
What would be the best solution to this dilemma. Is there a way to animate the button itself or if not, then is there a way to make a view ignore taps and pass them through to the view below it so that the button starts to work again.
However as I was testing the game I noticed that it may not be obvious that this is the path back so I want to make this button start to blink/bloom whatever through some animation when the user switches to an accessory view. Now I know how to create animations, but there are two problems that I face:
1. I don't see a way to access the drawing layer of the UIBarButtonItem or it's view (if it has one) which is necessary for me to even do some animations.
2. If I put a second transparent view on top of this button and then animate that one (works), then I lose the button functionality as the view gets all the touches and doesn't pass them on to the button.
What would be the best solution to this dilemma. Is there a way to animate the button itself or if not, then is there a way to make a view ignore taps and pass them through to the view below it so that the button starts to work again.
MacBook Air, Mac OS X (10.5.4)