I finally got it to work, and figured out what you just said about the delegate, and how thats sort of says where to look for the method you are calling. I do want to repeating fade up and fade down, so that was right. The problem ultimately was because I was using the utility application template (a bit modified) and when toggle view was called, it removes tat main view controller from superview. I assume since my running animation was set to have it as delegate, this caused a breaking point in the app. When I tweaked the toggleview code in the utility application code, to not remove the mainviewcontroller, everything worked fine.
But what you mention about the !done if statement, is this really necessary even if you are calling the 'setAnimationDidStopSelector' part in the core animation code?
|